mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+154
-172
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cognitosync provides a client for Amazon Cognito Sync.
|
||||
package cognitosync
|
||||
|
||||
import (
|
||||
@@ -18,19 +17,18 @@ const opBulkPublish = "BulkPublish"
|
||||
|
||||
// BulkPublishRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BulkPublish operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See BulkPublish for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BulkPublish method directly
|
||||
// instead.
|
||||
// See BulkPublish for more information on using the BulkPublish
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BulkPublishRequest method.
|
||||
// req, resp := client.BulkPublishRequest(params)
|
||||
@@ -121,19 +119,18 @@ const opDeleteDataset = "DeleteDataset"
|
||||
|
||||
// DeleteDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDataset operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteDataset for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteDataset method directly
|
||||
// instead.
|
||||
// See DeleteDataset for more information on using the DeleteDataset
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteDatasetRequest method.
|
||||
// req, resp := client.DeleteDatasetRequest(params)
|
||||
@@ -223,19 +220,18 @@ const opDescribeDataset = "DescribeDataset"
|
||||
|
||||
// DescribeDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeDataset operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeDataset for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeDataset method directly
|
||||
// instead.
|
||||
// See DescribeDataset for more information on using the DescribeDataset
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeDatasetRequest method.
|
||||
// req, resp := client.DescribeDatasetRequest(params)
|
||||
@@ -321,19 +317,18 @@ const opDescribeIdentityPoolUsage = "DescribeIdentityPoolUsage"
|
||||
|
||||
// DescribeIdentityPoolUsageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeIdentityPoolUsage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeIdentityPoolUsage for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeIdentityPoolUsage method directly
|
||||
// instead.
|
||||
// See DescribeIdentityPoolUsage for more information on using the DescribeIdentityPoolUsage
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeIdentityPoolUsageRequest method.
|
||||
// req, resp := client.DescribeIdentityPoolUsageRequest(params)
|
||||
@@ -417,19 +412,18 @@ const opDescribeIdentityUsage = "DescribeIdentityUsage"
|
||||
|
||||
// DescribeIdentityUsageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeIdentityUsage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeIdentityUsage for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeIdentityUsage method directly
|
||||
// instead.
|
||||
// See DescribeIdentityUsage for more information on using the DescribeIdentityUsage
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeIdentityUsageRequest method.
|
||||
// req, resp := client.DescribeIdentityUsageRequest(params)
|
||||
@@ -513,19 +507,18 @@ const opGetBulkPublishDetails = "GetBulkPublishDetails"
|
||||
|
||||
// GetBulkPublishDetailsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetBulkPublishDetails operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetBulkPublishDetails for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetBulkPublishDetails method directly
|
||||
// instead.
|
||||
// See GetBulkPublishDetails for more information on using the GetBulkPublishDetails
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetBulkPublishDetailsRequest method.
|
||||
// req, resp := client.GetBulkPublishDetailsRequest(params)
|
||||
@@ -605,19 +598,18 @@ const opGetCognitoEvents = "GetCognitoEvents"
|
||||
|
||||
// GetCognitoEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCognitoEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetCognitoEvents for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetCognitoEvents method directly
|
||||
// instead.
|
||||
// See GetCognitoEvents for more information on using the GetCognitoEvents
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetCognitoEventsRequest method.
|
||||
// req, resp := client.GetCognitoEventsRequest(params)
|
||||
@@ -701,19 +693,18 @@ const opGetIdentityPoolConfiguration = "GetIdentityPoolConfiguration"
|
||||
|
||||
// GetIdentityPoolConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetIdentityPoolConfiguration operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetIdentityPoolConfiguration for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetIdentityPoolConfiguration method directly
|
||||
// instead.
|
||||
// See GetIdentityPoolConfiguration for more information on using the GetIdentityPoolConfiguration
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetIdentityPoolConfigurationRequest method.
|
||||
// req, resp := client.GetIdentityPoolConfigurationRequest(params)
|
||||
@@ -796,19 +787,18 @@ const opListDatasets = "ListDatasets"
|
||||
|
||||
// ListDatasetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDatasets operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListDatasets for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDatasets method directly
|
||||
// instead.
|
||||
// See ListDatasets for more information on using the ListDatasets
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDatasetsRequest method.
|
||||
// req, resp := client.ListDatasetsRequest(params)
|
||||
@@ -891,19 +881,18 @@ const opListIdentityPoolUsage = "ListIdentityPoolUsage"
|
||||
|
||||
// ListIdentityPoolUsageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListIdentityPoolUsage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListIdentityPoolUsage for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListIdentityPoolUsage method directly
|
||||
// instead.
|
||||
// See ListIdentityPoolUsage for more information on using the ListIdentityPoolUsage
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListIdentityPoolUsageRequest method.
|
||||
// req, resp := client.ListIdentityPoolUsageRequest(params)
|
||||
@@ -984,19 +973,18 @@ const opListRecords = "ListRecords"
|
||||
|
||||
// ListRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListRecords operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListRecords for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListRecords method directly
|
||||
// instead.
|
||||
// See ListRecords for more information on using the ListRecords
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListRecordsRequest method.
|
||||
// req, resp := client.ListRecordsRequest(params)
|
||||
@@ -1080,19 +1068,18 @@ const opRegisterDevice = "RegisterDevice"
|
||||
|
||||
// RegisterDeviceRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RegisterDevice operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RegisterDevice for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RegisterDevice method directly
|
||||
// instead.
|
||||
// See RegisterDevice for more information on using the RegisterDevice
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RegisterDeviceRequest method.
|
||||
// req, resp := client.RegisterDeviceRequest(params)
|
||||
@@ -1177,19 +1164,18 @@ const opSetCognitoEvents = "SetCognitoEvents"
|
||||
|
||||
// SetCognitoEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetCognitoEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See SetCognitoEvents for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetCognitoEvents method directly
|
||||
// instead.
|
||||
// See SetCognitoEvents for more information on using the SetCognitoEvents
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetCognitoEventsRequest method.
|
||||
// req, resp := client.SetCognitoEventsRequest(params)
|
||||
@@ -1277,19 +1263,18 @@ const opSetIdentityPoolConfiguration = "SetIdentityPoolConfiguration"
|
||||
|
||||
// SetIdentityPoolConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetIdentityPoolConfiguration operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See SetIdentityPoolConfiguration for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetIdentityPoolConfiguration method directly
|
||||
// instead.
|
||||
// See SetIdentityPoolConfiguration for more information on using the SetIdentityPoolConfiguration
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetIdentityPoolConfigurationRequest method.
|
||||
// req, resp := client.SetIdentityPoolConfigurationRequest(params)
|
||||
@@ -1375,19 +1360,18 @@ const opSubscribeToDataset = "SubscribeToDataset"
|
||||
|
||||
// SubscribeToDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SubscribeToDataset operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See SubscribeToDataset for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SubscribeToDataset method directly
|
||||
// instead.
|
||||
// See SubscribeToDataset for more information on using the SubscribeToDataset
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SubscribeToDatasetRequest method.
|
||||
// req, resp := client.SubscribeToDatasetRequest(params)
|
||||
@@ -1473,19 +1457,18 @@ const opUnsubscribeFromDataset = "UnsubscribeFromDataset"
|
||||
|
||||
// UnsubscribeFromDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UnsubscribeFromDataset operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UnsubscribeFromDataset for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UnsubscribeFromDataset method directly
|
||||
// instead.
|
||||
// See UnsubscribeFromDataset for more information on using the UnsubscribeFromDataset
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UnsubscribeFromDatasetRequest method.
|
||||
// req, resp := client.UnsubscribeFromDatasetRequest(params)
|
||||
@@ -1571,19 +1554,18 @@ const opUpdateRecords = "UpdateRecords"
|
||||
|
||||
// UpdateRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateRecords operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateRecords for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateRecords method directly
|
||||
// instead.
|
||||
// See UpdateRecords for more information on using the UpdateRecords
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateRecordsRequest method.
|
||||
// req, resp := client.UpdateRecordsRequest(params)
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cognitosynciface provides an interface to enable mocking the Amazon Cognito Sync service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon Cognito Sync.
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cognitosync provides the client and types for making API
|
||||
// requests to Amazon Cognito Sync.
|
||||
//
|
||||
// Amazon Cognito Sync provides an AWS service and client library that enable
|
||||
// cross-device syncing of application-related user data. High-level client
|
||||
// libraries are available for both iOS and Android. You can use these libraries
|
||||
// to persist data locally so that it's available even if the device is offline.
|
||||
// Developer credentials don't need to be stored on the mobile device to access
|
||||
// the service. You can use Amazon Cognito to obtain a normalized user ID and
|
||||
// credentials. User data is persisted in a dataset that can store up to 1 MB
|
||||
// of key-value pairs, and you can have up to 20 datasets per user identity.
|
||||
//
|
||||
// With Amazon Cognito Sync, the data stored for each identity is accessible
|
||||
// only to credentials assigned to that identity. In order to use the Cognito
|
||||
// Sync service, you need to make API calls using credentials retrieved with
|
||||
// Amazon Cognito Identity service (http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html).
|
||||
//
|
||||
// If you want to use Cognito Sync in an Android or iOS application, you will
|
||||
// probably want to make API calls via the AWS Mobile SDK. To learn more, see
|
||||
// the Developer Guide for Android (http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html)
|
||||
// and the Developer Guide for iOS (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30 for more information on this service.
|
||||
//
|
||||
// See cognitosync package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cognitosync/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon Cognito Sync with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon Cognito Sync client CognitoSync for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cognitosync/#New
|
||||
package cognitosync
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cognitosync
|
||||
|
||||
|
||||
-428
@@ -1,428 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package cognitosync_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/cognitosync"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleCognitoSync_BulkPublish() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.BulkPublishInput{
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.BulkPublish(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_DeleteDataset() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.DeleteDatasetInput{
|
||||
DatasetName: aws.String("DatasetName"), // Required
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteDataset(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_DescribeDataset() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.DescribeDatasetInput{
|
||||
DatasetName: aws.String("DatasetName"), // Required
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeDataset(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_DescribeIdentityPoolUsage() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.DescribeIdentityPoolUsageInput{
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeIdentityPoolUsage(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_DescribeIdentityUsage() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.DescribeIdentityUsageInput{
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeIdentityUsage(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_GetBulkPublishDetails() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.GetBulkPublishDetailsInput{
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.GetBulkPublishDetails(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_GetCognitoEvents() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.GetCognitoEventsInput{
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.GetCognitoEvents(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_GetIdentityPoolConfiguration() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.GetIdentityPoolConfigurationInput{
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.GetIdentityPoolConfiguration(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_ListDatasets() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.ListDatasetsInput{
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.ListDatasets(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_ListIdentityPoolUsage() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.ListIdentityPoolUsageInput{
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.ListIdentityPoolUsage(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_ListRecords() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.ListRecordsInput{
|
||||
DatasetName: aws.String("DatasetName"), // Required
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
LastSyncCount: aws.Int64(1),
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("String"),
|
||||
SyncSessionToken: aws.String("SyncSessionToken"),
|
||||
}
|
||||
resp, err := svc.ListRecords(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_RegisterDevice() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.RegisterDeviceInput{
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
Platform: aws.String("Platform"), // Required
|
||||
Token: aws.String("PushToken"), // Required
|
||||
}
|
||||
resp, err := svc.RegisterDevice(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_SetCognitoEvents() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.SetCognitoEventsInput{
|
||||
Events: map[string]*string{ // Required
|
||||
"Key": aws.String("LambdaFunctionArn"), // Required
|
||||
// More values...
|
||||
},
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.SetCognitoEvents(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_SetIdentityPoolConfiguration() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.SetIdentityPoolConfigurationInput{
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
CognitoStreams: &cognitosync.CognitoStreams{
|
||||
RoleArn: aws.String("AssumeRoleArn"),
|
||||
StreamName: aws.String("StreamName"),
|
||||
StreamingStatus: aws.String("StreamingStatus"),
|
||||
},
|
||||
PushSync: &cognitosync.PushSync{
|
||||
ApplicationArns: []*string{
|
||||
aws.String("ApplicationArn"), // Required
|
||||
// More values...
|
||||
},
|
||||
RoleArn: aws.String("AssumeRoleArn"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.SetIdentityPoolConfiguration(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_SubscribeToDataset() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.SubscribeToDatasetInput{
|
||||
DatasetName: aws.String("DatasetName"), // Required
|
||||
DeviceId: aws.String("DeviceId"), // Required
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.SubscribeToDataset(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_UnsubscribeFromDataset() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.UnsubscribeFromDatasetInput{
|
||||
DatasetName: aws.String("DatasetName"), // Required
|
||||
DeviceId: aws.String("DeviceId"), // Required
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
}
|
||||
resp, err := svc.UnsubscribeFromDataset(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleCognitoSync_UpdateRecords() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := cognitosync.New(sess)
|
||||
|
||||
params := &cognitosync.UpdateRecordsInput{
|
||||
DatasetName: aws.String("DatasetName"), // Required
|
||||
IdentityId: aws.String("IdentityId"), // Required
|
||||
IdentityPoolId: aws.String("IdentityPoolId"), // Required
|
||||
SyncSessionToken: aws.String("SyncSessionToken"), // Required
|
||||
ClientContext: aws.String("ClientContext"),
|
||||
DeviceId: aws.String("DeviceId"),
|
||||
RecordPatches: []*cognitosync.RecordPatch{
|
||||
{ // Required
|
||||
Key: aws.String("RecordKey"), // Required
|
||||
Op: aws.String("Operation"), // Required
|
||||
SyncCount: aws.Int64(1), // Required
|
||||
DeviceLastModifiedDate: aws.Time(time.Now()),
|
||||
Value: aws.String("RecordValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.UpdateRecords(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-21
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cognitosync
|
||||
|
||||
@@ -11,27 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// Amazon Cognito Sync provides an AWS service and client library that enable
|
||||
// cross-device syncing of application-related user data. High-level client
|
||||
// libraries are available for both iOS and Android. You can use these libraries
|
||||
// to persist data locally so that it's available even if the device is offline.
|
||||
// Developer credentials don't need to be stored on the mobile device to access
|
||||
// the service. You can use Amazon Cognito to obtain a normalized user ID and
|
||||
// credentials. User data is persisted in a dataset that can store up to 1 MB
|
||||
// of key-value pairs, and you can have up to 20 datasets per user identity.
|
||||
// CognitoSync provides the API operation methods for making requests to
|
||||
// Amazon Cognito Sync. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// With Amazon Cognito Sync, the data stored for each identity is accessible
|
||||
// only to credentials assigned to that identity. In order to use the Cognito
|
||||
// Sync service, you need to make API calls using credentials retrieved with
|
||||
// Amazon Cognito Identity service (http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html).
|
||||
//
|
||||
// If you want to use Cognito Sync in an Android or iOS application, you will
|
||||
// probably want to make API calls via the AWS Mobile SDK. To learn more, see
|
||||
// the Developer Guide for Android (http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html)
|
||||
// and the Developer Guide for iOS (http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html).
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30
|
||||
// CognitoSync methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CognitoSync struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user