codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsHttpPresignURLClientGenerator.java
public void writePresignInterface(
            GoWriter writer,
            Model model,
            SymbolProvider symbolProvider,
            ServiceShape serviceShape
    ) {
        Symbol signerOptionsSymbol = SymbolUtils.createPointableSymbolBuilder("SignerOptions",
                AwsGoDependency.AWS_SIGNER_V4).build();

        writer.writeDocs(
                String.format("%s represents presigner interface used by presign url client",
                        presignerInterfaceSymbol.getName())
        );
        writer.openBlock("type $T interface {", "}", presignerInterfaceSymbol, () -> {
            writer.write("PresignHTTP(");
            writer.write("ctx context.Context, credentials aws.Credentials, r *http.Request,");
            writer.write("payloadHash string, service string, region string, signingTime time.Time,");
            writer.write("optFns ...func($P),", signerOptionsSymbol);
            writer.write(") (url string, signedHeader http.Header, err error)");
        });

        writer.write("");
    }
/**
     * Writes the presigner interface used by the presign url client
     */
Writes the presigner interface used by the presign url client
Writes the presigner interface used by the presign url client
public void writePresignInterface(
            GoWriter writer,
            Model model,
            SymbolProvider symbolProvider,
            ServiceShape serviceShape
    ) {
        Symbol signerOptionsSymbol = SymbolUtils.createPointableSymbolBuilder("SignerOptions",
                AwsGoDependency.AWS_SIGNER_V4).build();
        writer.writeDocs(
                String.format("%s represents presigner interface used by presign url client",
                        presignerInterfaceSymbol.getName())
        );
        writer.openBlock("type $T interface {", "}", presignerInterfaceSymbol, () -> {
            writer.write("PresignHTTP(");
            writer.write("ctx context.Context, credentials aws.Credentials, r *http.Request,");
            writer.write("payloadHash string, service string, region string, signingTime time.Time,");
            writer.write("optFns ...func($P),", signerOptionsSymbol);
            writer.write(") (url string, signedHeader http.Header, err error)");
        });
        writer.write("");
    }
public void writePresignInterface ( GoWriter writer , Model model , SymbolProvider symbolProvider , ServiceShape serviceShape ) { Symbol signerOptionsSymbol = SymbolUtils . createPointableSymbolBuilder ( "SignerOptions" , AwsGoDependency . AWS_SIGNER_V4 ) . build ( ) ; writer . writeDocs ( String . format ( "%s represents presigner interface used by presign url client" , presignerInterfaceSymbol . getName ( ) ) ) ; writer . openBlock ( "type $T interface {" , "}" , presignerInterfaceSymbol , ( ) -> { writer . write ( "PresignHTTP(" ) ; writer . write ( "ctx context.Context, credentials aws.Credentials, r *http.Request," ) ; writer . write ( "payloadHash string, service string, region string, signingTime time.Time," ) ; writer . write ( "optFns ...func($P)," , signerOptionsSymbol ) ; writer . write ( ") (url string, signedHeader http.Header, err error)" ) ; } ) ; writer . write ( "" ) ; }
Writes the presigner interface used by the presign url client
Writes the presigner interface used by the presign url client