Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a resource data sync configuration to a single bucket in Amazon S3. This is an asynchronous operation that returns immediately. After a successful initial sync is completed, the system continuously syncs data to the Amazon S3 bucket. To check the status of the sync, use the ListResourceDataSync operation.
By default, data is not encrypted in Amazon S3. We strongly recommend that you enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you secure access to the Amazon S3 bucket by creating a restrictive bucket policy. To view an example of a restrictive Amazon S3 bucket policy for Resource Data Sync, see Configuring Resource Data Sync for Inventory .
- createResourceDataSync :: Text -> ResourceDataSyncS3Destination -> CreateResourceDataSync
- data CreateResourceDataSync
- crdsSyncName :: Lens' CreateResourceDataSync Text
- crdsS3Destination :: Lens' CreateResourceDataSync ResourceDataSyncS3Destination
- createResourceDataSyncResponse :: Int -> CreateResourceDataSyncResponse
- data CreateResourceDataSyncResponse
- crdsrsResponseStatus :: Lens' CreateResourceDataSyncResponse Int
Creating a Request
createResourceDataSync Source #
Creates a value of CreateResourceDataSync
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crdsSyncName
- A name for the configuration.crdsS3Destination
- Amazon S3 configuration details for the sync.
data CreateResourceDataSync Source #
See: createResourceDataSync
smart constructor.
Request Lenses
crdsSyncName :: Lens' CreateResourceDataSync Text Source #
A name for the configuration.
crdsS3Destination :: Lens' CreateResourceDataSync ResourceDataSyncS3Destination Source #
Amazon S3 configuration details for the sync.
Destructuring the Response
createResourceDataSyncResponse Source #
Creates a value of CreateResourceDataSyncResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crdsrsResponseStatus
- -- | The response status code.
data CreateResourceDataSyncResponse Source #
See: createResourceDataSyncResponse
smart constructor.
Response Lenses
crdsrsResponseStatus :: Lens' CreateResourceDataSyncResponse Int Source #
- - | The response status code.