<?xml version="1.0" encoding="UTF-8"?>
<HttpGatewayClientFlow>
  <Calls>
    <Call>
      <Name>AddFileToBucketS3</Name>
      <Method>PUT</Method>
      <Url type="ScriptExpression">&apos;https://REPLACE_BY_YOUR_BUCKET.s3.REGION.amazonaws.com/&apos;+key</Url>
      <PostAction>
        <Variables>
        </Variables>
        <Wait>0</Wait>
        <Validate>
          <ApplyRetryStrategy>false</ApplyRetryStrategy>
        </Validate>
        <SetMetadatas>
        </SetMetadatas>
      </PostAction>
      <Authentication>
        <PreemptiveAuthentication>false</PreemptiveAuthentication>
        <HttpAuthenticationHeaders>
        </HttpAuthenticationHeaders>
        <MetadataFromLoginResponse>
        </MetadataFromLoginResponse>
        <AuthFormFields>
        </AuthFormFields>
        <UsedGlobalAuthentication>true</UsedGlobalAuthentication>
      </Authentication>
      <Wait>0</Wait>
      <ValidReturnCodes type="ConstantExpression">200,201,202,204,205</ValidReturnCodes>
      <Headers>
        <Header>
          <Name>content-type</Name>
          <Value type="ConstantExpression">application/octet-stream</Value>
        </Header>
      </Headers>
      <Timeout>90000</Timeout>
      <PostExtraParameters>
      </PostExtraParameters>
    </Call>
  </Calls>
  <Session>
    <Authentication>
      <HttpAuthenticationType>AWS_SIGNATURE_V4</HttpAuthenticationType>
      <PreemptiveAuthentication>false</PreemptiveAuthentication>
      <HttpAuthenticationHeaders>
      </HttpAuthenticationHeaders>
      <MetadataFromLoginResponse>
      </MetadataFromLoginResponse>
      <AuthFormFields>
      </AuthFormFields>
      <UsedGlobalAuthentication>false</UsedGlobalAuthentication>
      <AwsCredentials>
        <AccessKey></AccessKey>
        <SecretKey></SecretKey>
        <Bucket></Bucket>
        <Region>
          <Name>EU_WEST_1</Name>
        </Region>
      </AwsCredentials>
    </Authentication>
  </Session>
  <ScriptLanguage>
    <Name>JS</Name>
  </ScriptLanguage>
  <Init>
    <Variables>
      <Variable>
        <Name>key</Name>
        <Value type="MetadataExpression">{com_babelway_messaging_context_in_filename}</Value>
      </Variable>
    </Variables>
    <FirstStep>AddFileToBucketS3</FirstStep>
  </Init>
</HttpGatewayClientFlow>
