File: enums.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (245 lines) | stat: -rw-r--r-- 7,810 bytes parent folder | download
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

type AnalysisType string

// Enum values for AnalysisType
const (
	AnalysisTypeSecurity    AnalysisType = "Security"
	AnalysisTypeCodeQuality AnalysisType = "CodeQuality"
)

// Values returns all known values for AnalysisType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AnalysisType) Values() []AnalysisType {
	return []AnalysisType{
		"Security",
		"CodeQuality",
	}
}

type ConfigFileState string

// Enum values for ConfigFileState
const (
	ConfigFileStatePresent           ConfigFileState = "Present"
	ConfigFileStateAbsent            ConfigFileState = "Absent"
	ConfigFileStatePresentWithErrors ConfigFileState = "PresentWithErrors"
)

// Values returns all known values for ConfigFileState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ConfigFileState) Values() []ConfigFileState {
	return []ConfigFileState{
		"Present",
		"Absent",
		"PresentWithErrors",
	}
}

type EncryptionOption string

// Enum values for EncryptionOption
const (
	EncryptionOptionAoCmk EncryptionOption = "AWS_OWNED_CMK"
	EncryptionOptionCmCmk EncryptionOption = "CUSTOMER_MANAGED_CMK"
)

// Values returns all known values for EncryptionOption. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (EncryptionOption) Values() []EncryptionOption {
	return []EncryptionOption{
		"AWS_OWNED_CMK",
		"CUSTOMER_MANAGED_CMK",
	}
}

type JobState string

// Enum values for JobState
const (
	JobStateCompleted JobState = "Completed"
	JobStatePending   JobState = "Pending"
	JobStateFailed    JobState = "Failed"
	JobStateDeleting  JobState = "Deleting"
)

// Values returns all known values for JobState. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (JobState) Values() []JobState {
	return []JobState{
		"Completed",
		"Pending",
		"Failed",
		"Deleting",
	}
}

type ProviderType string

// Enum values for ProviderType
const (
	ProviderTypeCodeCommit             ProviderType = "CodeCommit"
	ProviderTypeGitHub                 ProviderType = "GitHub"
	ProviderTypeBitbucket              ProviderType = "Bitbucket"
	ProviderTypeGitHubEnterpriseServer ProviderType = "GitHubEnterpriseServer"
	ProviderTypeS3Bucket               ProviderType = "S3Bucket"
)

// Values returns all known values for ProviderType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ProviderType) Values() []ProviderType {
	return []ProviderType{
		"CodeCommit",
		"GitHub",
		"Bitbucket",
		"GitHubEnterpriseServer",
		"S3Bucket",
	}
}

type Reaction string

// Enum values for Reaction
const (
	ReactionThumbsUp   Reaction = "ThumbsUp"
	ReactionThumbsDown Reaction = "ThumbsDown"
)

// Values returns all known values for Reaction. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Reaction) Values() []Reaction {
	return []Reaction{
		"ThumbsUp",
		"ThumbsDown",
	}
}

type RecommendationCategory string

// Enum values for RecommendationCategory
const (
	RecommendationCategoryAwsBestPractices        RecommendationCategory = "AWSBestPractices"
	RecommendationCategoryAwsCloudformationIssues RecommendationCategory = "AWSCloudFormationIssues"
	RecommendationCategoryDuplicateCode           RecommendationCategory = "DuplicateCode"
	RecommendationCategoryCodeMaintenanceIssues   RecommendationCategory = "CodeMaintenanceIssues"
	RecommendationCategoryConcurrencyIssues       RecommendationCategory = "ConcurrencyIssues"
	RecommendationCategoryInputValidations        RecommendationCategory = "InputValidations"
	RecommendationCategoryPythonBestPractices     RecommendationCategory = "PythonBestPractices"
	RecommendationCategoryJavaBestPractices       RecommendationCategory = "JavaBestPractices"
	RecommendationCategoryResourceLeaks           RecommendationCategory = "ResourceLeaks"
	RecommendationCategorySecurityIssues          RecommendationCategory = "SecurityIssues"
	RecommendationCategoryCodeInconsistencies     RecommendationCategory = "CodeInconsistencies"
)

// Values returns all known values for RecommendationCategory. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (RecommendationCategory) Values() []RecommendationCategory {
	return []RecommendationCategory{
		"AWSBestPractices",
		"AWSCloudFormationIssues",
		"DuplicateCode",
		"CodeMaintenanceIssues",
		"ConcurrencyIssues",
		"InputValidations",
		"PythonBestPractices",
		"JavaBestPractices",
		"ResourceLeaks",
		"SecurityIssues",
		"CodeInconsistencies",
	}
}

type RepositoryAssociationState string

// Enum values for RepositoryAssociationState
const (
	RepositoryAssociationStateAssociated     RepositoryAssociationState = "Associated"
	RepositoryAssociationStateAssociating    RepositoryAssociationState = "Associating"
	RepositoryAssociationStateFailed         RepositoryAssociationState = "Failed"
	RepositoryAssociationStateDisassociating RepositoryAssociationState = "Disassociating"
	RepositoryAssociationStateDisassociated  RepositoryAssociationState = "Disassociated"
)

// Values returns all known values for RepositoryAssociationState. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (RepositoryAssociationState) Values() []RepositoryAssociationState {
	return []RepositoryAssociationState{
		"Associated",
		"Associating",
		"Failed",
		"Disassociating",
		"Disassociated",
	}
}

type Severity string

// Enum values for Severity
const (
	SeverityInfo     Severity = "Info"
	SeverityLow      Severity = "Low"
	SeverityMedium   Severity = "Medium"
	SeverityHigh     Severity = "High"
	SeverityCritical Severity = "Critical"
)

// Values returns all known values for Severity. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Severity) Values() []Severity {
	return []Severity{
		"Info",
		"Low",
		"Medium",
		"High",
		"Critical",
	}
}

type Type string

// Enum values for Type
const (
	TypePullRequest        Type = "PullRequest"
	TypeRepositoryAnalysis Type = "RepositoryAnalysis"
)

// Values returns all known values for Type. Note that this can be expanded in the
// future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Type) Values() []Type {
	return []Type{
		"PullRequest",
		"RepositoryAnalysis",
	}
}

type VendorName string

// Enum values for VendorName
const (
	VendorNameGithub   VendorName = "GitHub"
	VendorNameGitlab   VendorName = "GitLab"
	VendorNameNativeS3 VendorName = "NativeS3"
)

// Values returns all known values for VendorName. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (VendorName) Values() []VendorName {
	return []VendorName{
		"GitHub",
		"GitLab",
		"NativeS3",
	}
}