| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::AppSync::SyncConfig; | ||
| 3 | use Moose; | ||
| 4 | has ConflictDetection => (is => 'ro', isa => 'Str', request_name => 'conflictDetection', traits => ['NameInRequest']); | ||
| 5 | has ConflictHandler => (is => 'ro', isa => 'Str', request_name => 'conflictHandler', traits => ['NameInRequest']); | ||
| 6 | has LambdaConflictHandlerConfig => (is => 'ro', isa => 'Paws::AppSync::LambdaConflictHandlerConfig', request_name => 'lambdaConflictHandlerConfig', traits => ['NameInRequest']); | ||
| 7 | |||
| 8 | 1; | ||
| 9 | |||
| 10 | ### main pod documentation begin ### | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Paws::AppSync::SyncConfig | ||
| 15 | |||
| 16 | =head1 USAGE | ||
| 17 | |||
| 18 | This class represents one of two things: | ||
| 19 | |||
| 20 | =head3 Arguments in a call to a service | ||
| 21 | |||
| 22 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 23 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 24 | |||
| 25 | As an example, if Att1 is expected to be a Paws::AppSync::SyncConfig object: | ||
| 26 | |||
| 27 | $service_obj->Method(Att1 => { ConflictDetection => $value, ..., LambdaConflictHandlerConfig => $value }); | ||
| 28 | |||
| 29 | =head3 Results returned from an API call | ||
| 30 | |||
| 31 | Use accessors for each attribute. If Att1 is expected to be an Paws::AppSync::SyncConfig object: | ||
| 32 | |||
| 33 | $result = $service_obj->Method(...); | ||
| 34 | $result->Att1->ConflictDetection | ||
| 35 | |||
| 36 | =head1 DESCRIPTION | ||
| 37 | |||
| 38 | Describes a Sync configuration for a resolver. | ||
| 39 | |||
| 40 | Contains information on which Conflict Detection as well as Resolution | ||
| 41 | strategy should be performed when the resolver is invoked. | ||
| 42 | |||
| 43 | =head1 ATTRIBUTES | ||
| 44 | |||
| 45 | |||
| 46 | =head2 ConflictDetection => Str | ||
| 47 | |||
| 48 | The Conflict Detection strategy to use. | ||
| 49 | |||
| 50 | =over | ||
| 51 | |||
| 52 | =item * | ||
| 53 | |||
| 54 | B<VERSION>: Detect conflicts based on object versions for this | ||
| 55 | resolver. | ||
| 56 | |||
| 57 | =item * | ||
| 58 | |||
| 59 | B<NONE>: Do not detect conflicts when executing this resolver. | ||
| 60 | |||
| 61 | =back | ||
| 62 | |||
| 63 | |||
| 64 | |||
| 65 | =head2 ConflictHandler => Str | ||
| 66 | |||
| 67 | The Conflict Resolution strategy to perform in the event of a conflict. | ||
| 68 | |||
| 69 | =over | ||
| 70 | |||
| 71 | =item * | ||
| 72 | |||
| 73 | B<OPTIMISTIC_CONCURRENCY>: Resolve conflicts by rejecting mutations | ||
| 74 | when versions do not match the latest version at the server. | ||
| 75 | |||
| 76 | =item * | ||
| 77 | |||
| 78 | B<AUTOMERGE>: Resolve conflicts with the Automerge conflict resolution | ||
| 79 | strategy. | ||
| 80 | |||
| 81 | =item * | ||
| 82 | |||
| 83 | B<LAMBDA>: Resolve conflicts with a Lambda function supplied in the | ||
| 84 | LambdaConflictHandlerConfig. | ||
| 85 | |||
| 86 | =back | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 LambdaConflictHandlerConfig => L<Paws::AppSync::LambdaConflictHandlerConfig> | ||
| 91 | |||
| 92 | The C<LambdaConflictHandlerConfig> when configuring LAMBDA as the | ||
| 93 | Conflict Handler. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head1 SEE ALSO | ||
| 98 | |||
| 99 | This class forms part of L<Paws>, describing an object used in L<Paws::AppSync> | ||
| 100 | |||
| 101 | =head1 BUGS and CONTRIBUTIONS | ||
| 102 | |||
| 103 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 104 | |||
| 105 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 106 | |||
| 107 | =cut | ||
| 108 |