DocDBClient.php
144 lines
| 1 | <?php |
| 2 | namespace Aws\DocDB; |
| 3 | |
| 4 | use Aws\AwsClient; |
| 5 | use Aws\PresignUrlMiddleware; |
| 6 | |
| 7 | /** |
| 8 | * This client is used to interact with the **Amazon DocumentDB with MongoDB compatibility** service. |
| 9 | * @method \Aws\Result addSourceIdentifierToSubscription(array $args = []) |
| 10 | * @method \GuzzleHttp\Promise\Promise addSourceIdentifierToSubscriptionAsync(array $args = []) |
| 11 | * @method \Aws\Result addTagsToResource(array $args = []) |
| 12 | * @method \GuzzleHttp\Promise\Promise addTagsToResourceAsync(array $args = []) |
| 13 | * @method \Aws\Result applyPendingMaintenanceAction(array $args = []) |
| 14 | * @method \GuzzleHttp\Promise\Promise applyPendingMaintenanceActionAsync(array $args = []) |
| 15 | * @method \Aws\Result copyDBClusterParameterGroup(array $args = []) |
| 16 | * @method \GuzzleHttp\Promise\Promise copyDBClusterParameterGroupAsync(array $args = []) |
| 17 | * @method \Aws\Result copyDBClusterSnapshot(array $args = []) |
| 18 | * @method \GuzzleHttp\Promise\Promise copyDBClusterSnapshotAsync(array $args = []) |
| 19 | * @method \Aws\Result createDBCluster(array $args = []) |
| 20 | * @method \GuzzleHttp\Promise\Promise createDBClusterAsync(array $args = []) |
| 21 | * @method \Aws\Result createDBClusterParameterGroup(array $args = []) |
| 22 | * @method \GuzzleHttp\Promise\Promise createDBClusterParameterGroupAsync(array $args = []) |
| 23 | * @method \Aws\Result createDBClusterSnapshot(array $args = []) |
| 24 | * @method \GuzzleHttp\Promise\Promise createDBClusterSnapshotAsync(array $args = []) |
| 25 | * @method \Aws\Result createDBInstance(array $args = []) |
| 26 | * @method \GuzzleHttp\Promise\Promise createDBInstanceAsync(array $args = []) |
| 27 | * @method \Aws\Result createDBSubnetGroup(array $args = []) |
| 28 | * @method \GuzzleHttp\Promise\Promise createDBSubnetGroupAsync(array $args = []) |
| 29 | * @method \Aws\Result createEventSubscription(array $args = []) |
| 30 | * @method \GuzzleHttp\Promise\Promise createEventSubscriptionAsync(array $args = []) |
| 31 | * @method \Aws\Result createGlobalCluster(array $args = []) |
| 32 | * @method \GuzzleHttp\Promise\Promise createGlobalClusterAsync(array $args = []) |
| 33 | * @method \Aws\Result deleteDBCluster(array $args = []) |
| 34 | * @method \GuzzleHttp\Promise\Promise deleteDBClusterAsync(array $args = []) |
| 35 | * @method \Aws\Result deleteDBClusterParameterGroup(array $args = []) |
| 36 | * @method \GuzzleHttp\Promise\Promise deleteDBClusterParameterGroupAsync(array $args = []) |
| 37 | * @method \Aws\Result deleteDBClusterSnapshot(array $args = []) |
| 38 | * @method \GuzzleHttp\Promise\Promise deleteDBClusterSnapshotAsync(array $args = []) |
| 39 | * @method \Aws\Result deleteDBInstance(array $args = []) |
| 40 | * @method \GuzzleHttp\Promise\Promise deleteDBInstanceAsync(array $args = []) |
| 41 | * @method \Aws\Result deleteDBSubnetGroup(array $args = []) |
| 42 | * @method \GuzzleHttp\Promise\Promise deleteDBSubnetGroupAsync(array $args = []) |
| 43 | * @method \Aws\Result deleteEventSubscription(array $args = []) |
| 44 | * @method \GuzzleHttp\Promise\Promise deleteEventSubscriptionAsync(array $args = []) |
| 45 | * @method \Aws\Result deleteGlobalCluster(array $args = []) |
| 46 | * @method \GuzzleHttp\Promise\Promise deleteGlobalClusterAsync(array $args = []) |
| 47 | * @method \Aws\Result describeCertificates(array $args = []) |
| 48 | * @method \GuzzleHttp\Promise\Promise describeCertificatesAsync(array $args = []) |
| 49 | * @method \Aws\Result describeDBClusterParameterGroups(array $args = []) |
| 50 | * @method \GuzzleHttp\Promise\Promise describeDBClusterParameterGroupsAsync(array $args = []) |
| 51 | * @method \Aws\Result describeDBClusterParameters(array $args = []) |
| 52 | * @method \GuzzleHttp\Promise\Promise describeDBClusterParametersAsync(array $args = []) |
| 53 | * @method \Aws\Result describeDBClusterSnapshotAttributes(array $args = []) |
| 54 | * @method \GuzzleHttp\Promise\Promise describeDBClusterSnapshotAttributesAsync(array $args = []) |
| 55 | * @method \Aws\Result describeDBClusterSnapshots(array $args = []) |
| 56 | * @method \GuzzleHttp\Promise\Promise describeDBClusterSnapshotsAsync(array $args = []) |
| 57 | * @method \Aws\Result describeDBClusters(array $args = []) |
| 58 | * @method \GuzzleHttp\Promise\Promise describeDBClustersAsync(array $args = []) |
| 59 | * @method \Aws\Result describeDBEngineVersions(array $args = []) |
| 60 | * @method \GuzzleHttp\Promise\Promise describeDBEngineVersionsAsync(array $args = []) |
| 61 | * @method \Aws\Result describeDBInstances(array $args = []) |
| 62 | * @method \GuzzleHttp\Promise\Promise describeDBInstancesAsync(array $args = []) |
| 63 | * @method \Aws\Result describeDBSubnetGroups(array $args = []) |
| 64 | * @method \GuzzleHttp\Promise\Promise describeDBSubnetGroupsAsync(array $args = []) |
| 65 | * @method \Aws\Result describeEngineDefaultClusterParameters(array $args = []) |
| 66 | * @method \GuzzleHttp\Promise\Promise describeEngineDefaultClusterParametersAsync(array $args = []) |
| 67 | * @method \Aws\Result describeEventCategories(array $args = []) |
| 68 | * @method \GuzzleHttp\Promise\Promise describeEventCategoriesAsync(array $args = []) |
| 69 | * @method \Aws\Result describeEventSubscriptions(array $args = []) |
| 70 | * @method \GuzzleHttp\Promise\Promise describeEventSubscriptionsAsync(array $args = []) |
| 71 | * @method \Aws\Result describeEvents(array $args = []) |
| 72 | * @method \GuzzleHttp\Promise\Promise describeEventsAsync(array $args = []) |
| 73 | * @method \Aws\Result describeGlobalClusters(array $args = []) |
| 74 | * @method \GuzzleHttp\Promise\Promise describeGlobalClustersAsync(array $args = []) |
| 75 | * @method \Aws\Result describeOrderableDBInstanceOptions(array $args = []) |
| 76 | * @method \GuzzleHttp\Promise\Promise describeOrderableDBInstanceOptionsAsync(array $args = []) |
| 77 | * @method \Aws\Result describePendingMaintenanceActions(array $args = []) |
| 78 | * @method \GuzzleHttp\Promise\Promise describePendingMaintenanceActionsAsync(array $args = []) |
| 79 | * @method \Aws\Result failoverDBCluster(array $args = []) |
| 80 | * @method \GuzzleHttp\Promise\Promise failoverDBClusterAsync(array $args = []) |
| 81 | * @method \Aws\Result listTagsForResource(array $args = []) |
| 82 | * @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = []) |
| 83 | * @method \Aws\Result modifyDBCluster(array $args = []) |
| 84 | * @method \GuzzleHttp\Promise\Promise modifyDBClusterAsync(array $args = []) |
| 85 | * @method \Aws\Result modifyDBClusterParameterGroup(array $args = []) |
| 86 | * @method \GuzzleHttp\Promise\Promise modifyDBClusterParameterGroupAsync(array $args = []) |
| 87 | * @method \Aws\Result modifyDBClusterSnapshotAttribute(array $args = []) |
| 88 | * @method \GuzzleHttp\Promise\Promise modifyDBClusterSnapshotAttributeAsync(array $args = []) |
| 89 | * @method \Aws\Result modifyDBInstance(array $args = []) |
| 90 | * @method \GuzzleHttp\Promise\Promise modifyDBInstanceAsync(array $args = []) |
| 91 | * @method \Aws\Result modifyDBSubnetGroup(array $args = []) |
| 92 | * @method \GuzzleHttp\Promise\Promise modifyDBSubnetGroupAsync(array $args = []) |
| 93 | * @method \Aws\Result modifyEventSubscription(array $args = []) |
| 94 | * @method \GuzzleHttp\Promise\Promise modifyEventSubscriptionAsync(array $args = []) |
| 95 | * @method \Aws\Result modifyGlobalCluster(array $args = []) |
| 96 | * @method \GuzzleHttp\Promise\Promise modifyGlobalClusterAsync(array $args = []) |
| 97 | * @method \Aws\Result rebootDBInstance(array $args = []) |
| 98 | * @method \GuzzleHttp\Promise\Promise rebootDBInstanceAsync(array $args = []) |
| 99 | * @method \Aws\Result removeFromGlobalCluster(array $args = []) |
| 100 | * @method \GuzzleHttp\Promise\Promise removeFromGlobalClusterAsync(array $args = []) |
| 101 | * @method \Aws\Result removeSourceIdentifierFromSubscription(array $args = []) |
| 102 | * @method \GuzzleHttp\Promise\Promise removeSourceIdentifierFromSubscriptionAsync(array $args = []) |
| 103 | * @method \Aws\Result removeTagsFromResource(array $args = []) |
| 104 | * @method \GuzzleHttp\Promise\Promise removeTagsFromResourceAsync(array $args = []) |
| 105 | * @method \Aws\Result resetDBClusterParameterGroup(array $args = []) |
| 106 | * @method \GuzzleHttp\Promise\Promise resetDBClusterParameterGroupAsync(array $args = []) |
| 107 | * @method \Aws\Result restoreDBClusterFromSnapshot(array $args = []) |
| 108 | * @method \GuzzleHttp\Promise\Promise restoreDBClusterFromSnapshotAsync(array $args = []) |
| 109 | * @method \Aws\Result restoreDBClusterToPointInTime(array $args = []) |
| 110 | * @method \GuzzleHttp\Promise\Promise restoreDBClusterToPointInTimeAsync(array $args = []) |
| 111 | * @method \Aws\Result startDBCluster(array $args = []) |
| 112 | * @method \GuzzleHttp\Promise\Promise startDBClusterAsync(array $args = []) |
| 113 | * @method \Aws\Result stopDBCluster(array $args = []) |
| 114 | * @method \GuzzleHttp\Promise\Promise stopDBClusterAsync(array $args = []) |
| 115 | */ |
| 116 | class DocDBClient extends AwsClient { |
| 117 | public function __construct(array $args) |
| 118 | { |
| 119 | $args['with_resolved'] = function (array $args) { |
| 120 | $this->getHandlerList()->appendInit( |
| 121 | PresignUrlMiddleware::wrap( |
| 122 | $this, |
| 123 | $args['endpoint_provider'], |
| 124 | [ |
| 125 | 'operations' => [ |
| 126 | 'CopyDBClusterSnapshot', |
| 127 | 'CreateDBCluster', |
| 128 | ], |
| 129 | 'service' => 'rds', |
| 130 | 'presign_param' => 'PreSignedUrl', |
| 131 | 'require_different_region' => true, |
| 132 | 'extra_query_params' => [ |
| 133 | 'CopyDBClusterSnapshot' => ['DestinationRegion'], |
| 134 | 'CreateDBCluster' => ['DestinationRegion'], |
| 135 | ] |
| 136 | ] |
| 137 | ), |
| 138 | 'rds.presigner' |
| 139 | ); |
| 140 | }; |
| 141 | parent::__construct($args); |
| 142 | } |
| 143 | } |
| 144 |