Skip to content

Commit 177b14f

Browse files
committed
Update upgrading notes to mention removed .client property.
Closes #305
1 parent 7594446 commit 177b14f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: UPGRADING.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -131,22 +131,27 @@ modifySnapshotCopyRetentionPeriod, purchaseReservedNodeOffering, rebootCluster,
131131
restoreFromClusterSnapshot, revokeClusterSecurityGroupIngress,
132132
revokeSnapshotAccess, rotateEncryptionKey
133133

134-
## 4. Dropped `.Client` Property
134+
## 4. Dropped `.Client` and `.client` Properties
135135

136-
The `.Client` property has been removed from Service objects.
137-
If you are using the `.Client` property on a Service class, remove
138-
this property from your code.
136+
The `.Client` and `.client` properties have been removed from Service objects.
137+
If you are using the `.Client` property on a Service class or a `.client`
138+
property on an instance of the service, remove these properties from your code.
139139

140140
Upgrading example:
141141

142142
The following 1.x code:
143143

144144
```
145145
var sts = new AWS.STS.Client();
146+
// or
147+
var sts = new AWS.STS();
148+
149+
sts.client.operation(...);
146150
```
147151

148152
Should be changed to the following:
149153

150154
```
151155
var sts = new AWS.STS();
156+
sts.operation(...)
152157
```

0 commit comments

Comments
 (0)