Skip to content

Commit 69f50c2

Browse files
author
AWS
committed
AWS Sustainability Update: This is the first release of the AWS Sustainability SDK, which enables customers to access their sustainability impact data via API.
1 parent ae567e8 commit 69f50c2

File tree

6 files changed

+1018
-0
lines changed

6 files changed

+1018
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Sustainability",
4+
"contributor": "",
5+
"description": "This is the first release of the AWS Sustainability SDK, which enables customers to access their sustainability impact data via API."
6+
}

services/sustainability/pom.xml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<!--
3+
~ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License").
6+
~ You may not use this file except in compliance with the License.
7+
~ A copy of the License is located at
8+
~
9+
~ http://aws.amazon.com/apache2.0
10+
~
11+
~ or in the "license" file accompanying this file. This file is distributed
12+
~ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13+
~ express or implied. See the License for the specific language governing
14+
~ permissions and limitations under the License.
15+
--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
16+
<modelVersion>4.0.0</modelVersion>
17+
<parent>
18+
<groupId>software.amazon.awssdk</groupId>
19+
<artifactId>services</artifactId>
20+
<version>2.42.25-SNAPSHOT</version>
21+
</parent>
22+
<artifactId>sustainability</artifactId>
23+
<name>AWS Java SDK :: Services :: Sustainability</name>
24+
<description>The AWS Java SDK for Sustainability module holds the client classes that are used for
25+
communicating with Sustainability.
26+
</description>
27+
<url>https://aws.amazon.com/sdkforjava</url>
28+
<build>
29+
<plugins>
30+
<plugin>
31+
<groupId>org.apache.maven.plugins</groupId>
32+
<artifactId>maven-jar-plugin</artifactId>
33+
<configuration>
34+
<archive>
35+
<manifestEntries>
36+
<Automatic-Module-Name>software.amazon.awssdk.services.sustainability</Automatic-Module-Name>
37+
</manifestEntries>
38+
</archive>
39+
</configuration>
40+
</plugin>
41+
</plugins>
42+
</build>
43+
<dependencies>
44+
<dependency>
45+
<groupId>software.amazon.awssdk</groupId>
46+
<artifactId>protocol-core</artifactId>
47+
<version>${awsjavasdk.version}</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>software.amazon.awssdk</groupId>
51+
<artifactId>aws-json-protocol</artifactId>
52+
<version>${awsjavasdk.version}</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>software.amazon.awssdk</groupId>
56+
<artifactId>http-auth-aws</artifactId>
57+
<version>${awsjavasdk.version}</version>
58+
</dependency>
59+
</dependencies>
60+
</project>
Lines changed: 316 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,316 @@
1+
{
2+
"version": "1.0",
3+
"parameters": {
4+
"UseFIPS": {
5+
"builtIn": "AWS::UseFIPS",
6+
"required": true,
7+
"default": false,
8+
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
9+
"type": "boolean"
10+
},
11+
"Endpoint": {
12+
"builtIn": "SDK::Endpoint",
13+
"required": false,
14+
"documentation": "Override the endpoint used to send this request",
15+
"type": "string"
16+
},
17+
"Region": {
18+
"builtIn": "AWS::Region",
19+
"required": false,
20+
"documentation": "The AWS region used to dispatch the request.",
21+
"type": "string"
22+
}
23+
},
24+
"rules": [
25+
{
26+
"conditions": [
27+
{
28+
"fn": "isSet",
29+
"argv": [
30+
{
31+
"ref": "Endpoint"
32+
}
33+
]
34+
}
35+
],
36+
"rules": [
37+
{
38+
"conditions": [
39+
{
40+
"fn": "booleanEquals",
41+
"argv": [
42+
{
43+
"ref": "UseFIPS"
44+
},
45+
true
46+
]
47+
}
48+
],
49+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported",
50+
"type": "error"
51+
},
52+
{
53+
"conditions": [],
54+
"endpoint": {
55+
"url": {
56+
"ref": "Endpoint"
57+
},
58+
"properties": {
59+
"authSchemes": [
60+
{
61+
"name": "sigv4a",
62+
"signingRegionSet": [
63+
"*"
64+
]
65+
},
66+
{
67+
"name": "sigv4"
68+
}
69+
]
70+
},
71+
"headers": {}
72+
},
73+
"type": "endpoint"
74+
}
75+
],
76+
"type": "tree"
77+
},
78+
{
79+
"conditions": [],
80+
"rules": [
81+
{
82+
"conditions": [
83+
{
84+
"fn": "isSet",
85+
"argv": [
86+
{
87+
"ref": "Region"
88+
}
89+
]
90+
}
91+
],
92+
"rules": [
93+
{
94+
"conditions": [
95+
{
96+
"fn": "aws.partition",
97+
"argv": [
98+
{
99+
"ref": "Region"
100+
}
101+
],
102+
"assign": "PartitionResult"
103+
}
104+
],
105+
"rules": [
106+
{
107+
"conditions": [
108+
{
109+
"fn": "stringEquals",
110+
"argv": [
111+
{
112+
"fn": "getAttr",
113+
"argv": [
114+
{
115+
"ref": "PartitionResult"
116+
},
117+
"name"
118+
]
119+
},
120+
"aws"
121+
]
122+
},
123+
{
124+
"fn": "booleanEquals",
125+
"argv": [
126+
{
127+
"ref": "UseFIPS"
128+
},
129+
false
130+
]
131+
}
132+
],
133+
"endpoint": {
134+
"url": "https://api.sustainability.{Region}.{PartitionResult#dualStackDnsSuffix}",
135+
"properties": {
136+
"authSchemes": [
137+
{
138+
"name": "sigv4a",
139+
"signingRegionSet": [
140+
"*"
141+
]
142+
},
143+
{
144+
"name": "sigv4",
145+
"signingRegion": "us-east-1"
146+
}
147+
]
148+
},
149+
"headers": {}
150+
},
151+
"type": "endpoint"
152+
},
153+
{
154+
"conditions": [
155+
{
156+
"fn": "stringEquals",
157+
"argv": [
158+
{
159+
"fn": "getAttr",
160+
"argv": [
161+
{
162+
"ref": "PartitionResult"
163+
},
164+
"name"
165+
]
166+
},
167+
"aws-us-gov"
168+
]
169+
},
170+
{
171+
"fn": "booleanEquals",
172+
"argv": [
173+
{
174+
"ref": "UseFIPS"
175+
},
176+
false
177+
]
178+
}
179+
],
180+
"endpoint": {
181+
"url": "https://sustainability.us-gov.{PartitionResult#dualStackDnsSuffix}",
182+
"properties": {
183+
"authSchemes": [
184+
{
185+
"name": "sigv4a",
186+
"signingRegionSet": [
187+
"*"
188+
]
189+
},
190+
{
191+
"name": "sigv4",
192+
"signingRegion": "us-gov-west-1"
193+
}
194+
]
195+
},
196+
"headers": {}
197+
},
198+
"type": "endpoint"
199+
},
200+
{
201+
"conditions": [
202+
{
203+
"fn": "stringEquals",
204+
"argv": [
205+
{
206+
"fn": "getAttr",
207+
"argv": [
208+
{
209+
"ref": "PartitionResult"
210+
},
211+
"name"
212+
]
213+
},
214+
"aws-us-gov"
215+
]
216+
},
217+
{
218+
"fn": "booleanEquals",
219+
"argv": [
220+
{
221+
"ref": "UseFIPS"
222+
},
223+
true
224+
]
225+
}
226+
],
227+
"endpoint": {
228+
"url": "https://sustainability-fips.us-gov.{PartitionResult#dualStackDnsSuffix}",
229+
"properties": {
230+
"authSchemes": [
231+
{
232+
"name": "sigv4a",
233+
"signingRegionSet": [
234+
"*"
235+
]
236+
},
237+
{
238+
"name": "sigv4",
239+
"signingRegion": "us-gov-west-1"
240+
}
241+
]
242+
},
243+
"headers": {}
244+
},
245+
"type": "endpoint"
246+
},
247+
{
248+
"conditions": [
249+
{
250+
"fn": "booleanEquals",
251+
"argv": [
252+
{
253+
"ref": "UseFIPS"
254+
},
255+
true
256+
]
257+
}
258+
],
259+
"endpoint": {
260+
"url": "https://sustainability-fips.global.{PartitionResult#dualStackDnsSuffix}",
261+
"properties": {
262+
"authSchemes": [
263+
{
264+
"name": "sigv4a",
265+
"signingRegionSet": [
266+
"*"
267+
]
268+
},
269+
{
270+
"name": "sigv4",
271+
"signingRegion": "{PartitionResult#implicitGlobalRegion}"
272+
}
273+
]
274+
},
275+
"headers": {}
276+
},
277+
"type": "endpoint"
278+
},
279+
{
280+
"conditions": [],
281+
"endpoint": {
282+
"url": "https://sustainability.global.{PartitionResult#dualStackDnsSuffix}",
283+
"properties": {
284+
"authSchemes": [
285+
{
286+
"name": "sigv4a",
287+
"signingRegionSet": [
288+
"*"
289+
]
290+
},
291+
{
292+
"name": "sigv4",
293+
"signingRegion": "{PartitionResult#implicitGlobalRegion}"
294+
}
295+
]
296+
},
297+
"headers": {}
298+
},
299+
"type": "endpoint"
300+
}
301+
],
302+
"type": "tree"
303+
}
304+
],
305+
"type": "tree"
306+
},
307+
{
308+
"conditions": [],
309+
"error": "Invalid Configuration: Missing Region",
310+
"type": "error"
311+
}
312+
],
313+
"type": "tree"
314+
}
315+
]
316+
}

0 commit comments

Comments
 (0)