-
Notifications
You must be signed in to change notification settings - Fork 792
/
BuiltInParameter.java
70 lines (66 loc) · 2.47 KB
/
BuiltInParameter.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package software.amazon.awssdk.codegen.model.rules.endpoints;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Locale;
public enum BuiltInParameter {
AWS_REGION,
AWS_USE_DUAL_STACK,
AWS_USE_FIPS,
SDK_ENDPOINT,
AWS_AUTH_ACCOUNT_ID,
AWS_AUTH_ACCOUNT_ID_ENDPOINT_MODE,
AWS_STS_USE_GLOBAL_ENDPOINT,
AWS_S3_FORCE_PATH_STYLE,
AWS_S3_ACCELERATE,
AWS_S3_USE_GLOBAL_ENDPOINT,
AWS_S3_DISABLE_MULTI_REGION_ACCESS_POINTS,
AWS_S3_USE_ARN_REGION,
AWS_S3_CONTROL_USE_ARN_REGION
;
@JsonCreator
public static BuiltInParameter fromValue(String s) {
switch (s.toLowerCase(Locale.ENGLISH)) {
case "aws::region":
return AWS_REGION;
case "aws::usedualstack":
return AWS_USE_DUAL_STACK;
case "aws::usefips":
return AWS_USE_FIPS;
case "sdk::endpoint":
return SDK_ENDPOINT;
case "aws::auth::accountid":
return AWS_AUTH_ACCOUNT_ID;
case "aws::auth::accountidendpointmode":
return AWS_AUTH_ACCOUNT_ID_ENDPOINT_MODE;
case "aws::sts::useglobalendpoint":
return AWS_STS_USE_GLOBAL_ENDPOINT;
case "aws::s3::forcepathstyle":
return AWS_S3_FORCE_PATH_STYLE;
case "aws::s3::accelerate":
return AWS_S3_ACCELERATE;
case "aws::s3::useglobalendpoint":
return AWS_S3_USE_GLOBAL_ENDPOINT;
case "aws::s3::disablemultiregionaccesspoints":
return AWS_S3_DISABLE_MULTI_REGION_ACCESS_POINTS;
case "aws::s3::usearnregion":
return AWS_S3_USE_ARN_REGION;
case "aws::s3control::usearnregion":
return AWS_S3_CONTROL_USE_ARN_REGION;
default:
throw new RuntimeException("Unrecognized builtin: " + s);
}
}
}