1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Configuration options for configure Cognito streams.
type CognitoStreams struct {
// The ARN of the role Amazon Cognito can assume in order to publish to the
// stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke
// PutRecord on your Cognito stream.
RoleArn *string
// The name of the Cognito stream to receive updates. This stream must be in the
// developers account and in the same region as the identity pool.
StreamName *string
// Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates
// to identity pool is enabled. DISABLED - Streaming of updates to identity pool is
// disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
StreamingStatus StreamingStatus
noSmithyDocumentSerde
}
// A collection of data for an identity pool. An identity pool can have multiple
// datasets. A dataset is per identity and can be general or associated with a
// particular entity in an application (like a saved game). Datasets are
// automatically created if they don't exist. Data is synced by dataset, and a
// dataset can hold up to 1MB of key-value pairs.
type Dataset struct {
// Date on which the dataset was created.
CreationDate *time.Time
// Total size in bytes of the records in this dataset.
DataStorage *int64
// A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_'
// (underscore), '-' (dash), and '.' (dot).
DatasetName *string
// A name-spaced GUID (for example,
// us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID
// generation is unique within a region.
IdentityId *string
// The device that made the last change to this dataset.
LastModifiedBy *string
// Date when the dataset was last modified.
LastModifiedDate *time.Time
// Number of records in this dataset.
NumRecords *int64
noSmithyDocumentSerde
}
// Usage information for the identity pool.
type IdentityPoolUsage struct {
// Data storage information for the identity pool.
DataStorage *int64
// A name-spaced GUID (for example,
// us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID
// generation is unique within a region.
IdentityPoolId *string
// Date on which the identity pool was last modified.
LastModifiedDate *time.Time
// Number of sync sessions for the identity pool.
SyncSessionsCount *int64
noSmithyDocumentSerde
}
// Usage information for the identity.
type IdentityUsage struct {
// Total data storage for this identity.
DataStorage *int64
// Number of datasets for the identity.
DatasetCount int32
// A name-spaced GUID (for example,
// us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID
// generation is unique within a region.
IdentityId *string
// A name-spaced GUID (for example,
// us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID
// generation is unique within a region.
IdentityPoolId *string
// Date on which the identity was last modified.
LastModifiedDate *time.Time
noSmithyDocumentSerde
}
// Configuration options to be applied to the identity pool.
type PushSync struct {
// List of SNS platform application ARNs that could be used by clients.
ApplicationArns []string
// A role configured to allow Cognito to call SNS on behalf of the developer.
RoleArn *string
noSmithyDocumentSerde
}
// The basic data structure of a dataset.
type Record struct {
// The last modified date of the client device.
DeviceLastModifiedDate *time.Time
// The key for the record.
Key *string
// The user/device that made the last change to this record.
LastModifiedBy *string
// The date on which the record was last modified.
LastModifiedDate *time.Time
// The server sync count for this record.
SyncCount *int64
// The value for the record.
Value *string
noSmithyDocumentSerde
}
// An update operation for a record.
type RecordPatch struct {
// The key associated with the record patch.
//
// This member is required.
Key *string
// An operation, either replace or remove.
//
// This member is required.
Op Operation
// Last known server sync count for this record. Set to 0 if unknown.
//
// This member is required.
SyncCount *int64
// The last modified date of the client device.
DeviceLastModifiedDate *time.Time
// The value associated with the record patch.
Value *string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|