Home > Cloud Cruiser 3 > Setting Up Collection > Native collectors > Amazon Web Services - deprecated > Spring Batch XML examples

Spring Batch XML examples

Table of contents
No headers
<batch:job id="collectAWS" parent="ccjob‐debug">
  <batch:step id="downloadCostAllocationReports">
    <batch:tasklet>
      <bean class="com.cloudcruiser.batch.collect.amazon.DownloadCostAllocationReportsTasklet">
        <property name="active" value="true"/>
        <property name="bucketName" value="MY_BUCKET_NAME"/>
        <property name="dataSourceConfig">
          <bean class="com.cloudcruiser.batch.collect.amazon.ManagedAmazonDataSource">
            <property name="name" value="MY_DATA_SOURCE_NAME"/>
          </bean>
        <property name="amazonConnectionConfiguration" ref="amazonConnectionConfiguration"/>
      </bean>
    </batch:tasklet>
  </batch:step>
</batch:job>
<batch:step id="collect" next="assemble">
  <batch:tasklet>
    <bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">
      <property name="active" value="true"/>
      <property name="feedName" value="aws_feed1"/>
      <property name="singleFeedPerDay" value="true"/>
      <property name="collector">
        <bean class="com.cloudcruiser.batch.collect.amazon.AmazonCollector">
          <property name="feedConfig">
            <bean class="com.cloudcruiser.batch.collect.amazon.AmazonFeedConfig">
              <property name="useTotalCostField" value="true"/>
              <property name="stripUserTagPrefix" value="false"/>
            </bean>
          </property>
        </bean>
      </property>
    </bean>
  </batch:tasklet>
</batch:step>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP