Skip to content

Commit a7b5a03

Browse files
acm19dblock
authored andcommitted
Add Apache v5 Client Sample documentation
Adds missing Apache v5 documentation to the README, last missing bit of the new supported client.
1 parent 8f5e98e commit a7b5a03

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ final class Example {
101101

102102
## Examples
103103

104-
To run the [Amazon OpenSearch Sample](src/test/java/io/github/acm19/aws/interceptor/test/AmazonOpenSearchServiceSample.java) pass the values of _endpoint_ and _region_ into `exec.args`.
104+
### Apache HTTP Client
105+
106+
To run the [Amazon OpenSearch Sample](src/test/java/io/github/acm19/aws/interceptor/test/AmazonOpenSearchServiceSample.java) pass the values of `endpoint` and `region` into `exec.args`.
105107

106108
```
107109
export AWS_ACCESS_KEY_ID=
@@ -119,6 +121,26 @@ ENDPOINT=<your-endpoint> REGION=<your-region> make run_sample
119121

120122
See [examples](src/test/java/io/github/acm19/aws/interceptor/test) for more valid requests.
121123

124+
### Apache HTTP Client V5
125+
126+
To run the [Amazon OpenSearch Sample](src/test/java/io/github/acm19/aws/interceptorv5/test/AmazonOpenSearchServiceSample.java) pass the values of `endpoint` and `region` into `exec.args`.
127+
128+
```
129+
export AWS_ACCESS_KEY_ID=
130+
export AWS_SECRET_ACCESS_KEY=
131+
export AWS_SESSION_TOKEN=
132+
133+
mvn test-compile exec:java -Dexec.classpathScope=test -Dexec.mainClass="io.github.acm19.aws.interceptorv5.test.AmazonOpenSearchServiceSample" -Dexec.args="--endpoint=https://...us-west-2.es.amazonaws.com --region=us-west-2"
134+
```
135+
136+
Alternatively use `make` as follows:
137+
138+
```
139+
ENDPOINT=<your-endpoint> REGION=<your-region> make run_v5_sample
140+
```
141+
142+
See [examples](src/test/java/io/github/acm19/aws/interceptorv5/test) for more valid requests.
143+
122144
## Contributing
123145

124146
You're encouraged to contribute to this project. See [CONTRIBUTING](CONTRIBUTING.md) for details.

0 commit comments

Comments
 (0)