File: types.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 (278 lines) | stat: -rw-r--r-- 10,136 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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	"github.com/aws/aws-sdk-go-v2/service/resourceexplorer2/document"
	smithydocument "github.com/aws/smithy-go/document"
	"time"
)

// A collection of error messages for any views that Amazon Web Services Resource
// Explorer couldn't retrieve details.
type BatchGetViewError struct {

	// The description of the error for the specified view.
	//
	// This member is required.
	ErrorMessage *string

	// The Amazon resource name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
	// of the view for which Resource Explorer failed to retrieve details.
	//
	// This member is required.
	ViewArn *string

	noSmithyDocumentSerde
}

// Information about an additional property that describes a resource, that you
// can optionally include in the view. This lets you view that property in search
// results, and filter your search results based on the value of the property.
type IncludedProperty struct {

	// The name of the property that is included in this view. You can specify the
	// following property names for this field:
	//   - Tags
	//
	// This member is required.
	Name *string

	noSmithyDocumentSerde
}

// An index is the data store used by Amazon Web Services Resource Explorer to
// hold information about your Amazon Web Services resources that the service
// discovers. Creating an index in an Amazon Web Services Region turns on Resource
// Explorer and lets it discover your resources. By default, an index is local,
// meaning that it contains information about resources in only the same Region as
// the index. However, you can promote the index of one Region in the account by
// calling UpdateIndexType to convert it into an aggregator index. The aggregator
// index receives a replicated copy of the index information from all other Regions
// where Resource Explorer is turned on. This allows search operations in that
// Region to return results from all Regions in the account.
type Index struct {

	// The Amazon resource name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
	// of the index.
	Arn *string

	// The Amazon Web Services Region in which the index exists.
	Region *string

	// The type of index. It can be one of the following values:
	//   - LOCAL – The index contains information about resources from only the same
	//   Amazon Web Services Region.
	//   - AGGREGATOR – Resource Explorer replicates copies of the indexed information
	//   about resources in all other Amazon Web Services Regions to the aggregator
	//   index. This lets search results in the Region with the aggregator index to
	//   include resources from all Regions in the account where Resource Explorer is
	//   turned on.
	Type IndexType

	noSmithyDocumentSerde
}

// An index is the data store used by Amazon Web Services Resource Explorer to
// hold information about your Amazon Web Services resources that the service
// discovers.
type MemberIndex struct {

	// The account ID for the index.
	AccountId *string

	// The Amazon resource name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
	// of the index.
	Arn *string

	// The Amazon Web Services Region in which the index exists.
	Region *string

	// The type of index. It can be one of the following values:
	//   - LOCAL – The index contains information about resources from only the same
	//   Amazon Web Services Region.
	//   - AGGREGATOR – Resource Explorer replicates copies of the indexed information
	//   about resources in all other Amazon Web Services Regions to the aggregator
	//   index. This lets search results in the Region with the aggregator index to
	//   include resources from all Regions in the account where Resource Explorer is
	//   turned on.
	Type IndexType

	noSmithyDocumentSerde
}

// This is a structure that contains the status of Amazon Web Services service
// access, and whether you have a valid service-linked role to enable multi-account
// search for your organization.
type OrgConfiguration struct {

	// This value displays whether your Amazon Web Services service access is ENABLED
	// or DISABLED .
	//
	// This member is required.
	AWSServiceAccessStatus AWSServiceAccessStatus

	// This value shows whether or not you have a valid a service-linked role required
	// to start the multi-account search feature.
	ServiceLinkedRole *string

	noSmithyDocumentSerde
}

// A resource in Amazon Web Services that Amazon Web Services Resource Explorer
// has discovered, and for which it has stored information in the index of the
// Amazon Web Services Region that contains the resource.
type Resource struct {

	// The Amazon resource name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
	// of the resource.
	Arn *string

	// The date and time that Resource Explorer last queried this resource and updated
	// the index with the latest information about the resource.
	LastReportedAt *time.Time

	// The Amazon Web Services account that owns the resource.
	OwningAccountId *string

	// A structure with additional type-specific details about the resource. These
	// properties can be added by turning on integration between Resource Explorer and
	// other Amazon Web Services services.
	Properties []ResourceProperty

	// The Amazon Web Services Region in which the resource was created and exists.
	Region *string

	// The type of the resource.
	ResourceType *string

	// The Amazon Web Service that owns the resource and is responsible for creating
	// and updating it.
	Service *string

	noSmithyDocumentSerde
}

// Information about the number of results that match the query. At this time,
// Amazon Web Services Resource Explorer doesn't count more than 1,000 matches for
// any query. This structure provides information about whether the query exceeded
// this limit. This field is included in every page when you paginate the results.
type ResourceCount struct {

	// Indicates whether the TotalResources value represents an exhaustive count of
	// search results.
	//   - If True , it indicates that the search was exhaustive. Every resource that
	//   matches the query was counted.
	//   - If False , then the search reached the limit of 1,000 matching results, and
	//   stopped counting.
	Complete *bool

	// The number of resources that match the search query. This value can't exceed
	// 1,000. If there are more than 1,000 resources that match the query, then only
	// 1,000 are counted and the Complete field is set to false. We recommend that you
	// refine your query to return a smaller number of results.
	TotalResources *int64

	noSmithyDocumentSerde
}

// A structure that describes a property of a resource.
type ResourceProperty struct {

	// Details about this property. The content of this field is a JSON object that
	// varies based on the resource type.
	Data document.Interface

	// The date and time that the information about this resource property was last
	// updated.
	LastReportedAt *time.Time

	// The name of this property of the resource.
	Name *string

	noSmithyDocumentSerde
}

// A search filter defines which resources can be part of a search query result
// set.
type SearchFilter struct {

	// The string that contains the search keywords, prefixes, and operators to
	// control the results that can be returned by a Search operation. For more
	// details, see Search query syntax (https://docs.aws.amazon.com/resource-explorer/latest/APIReference/about-query-syntax.html)
	// .
	//
	// This member is required.
	FilterString *string

	noSmithyDocumentSerde
}

// A structure that describes a resource type supported by Amazon Web Services
// Resource Explorer.
type SupportedResourceType struct {

	// The unique identifier of the resource type.
	ResourceType *string

	// The Amazon Web Service that is associated with the resource type. This is the
	// primary service that lets you create and interact with resources of this type.
	Service *string

	noSmithyDocumentSerde
}

// A structure that describes a request field with a validation error.
type ValidationExceptionField struct {

	// The name of the request field that had a validation error.
	//
	// This member is required.
	Name *string

	// The validation error caused by the request field.
	//
	// This member is required.
	ValidationIssue *string

	noSmithyDocumentSerde
}

// A view is a structure that defines a set of filters that provide a view into
// the information in the Amazon Web Services Resource Explorer index. The filters
// specify which information from the index is visible to the users of the view.
// For example, you can specify filters that include only resources that are tagged
// with the key "ENV" and the value "DEVELOPMENT" in the results returned by this
// view. You could also create a second view that includes only resources that are
// tagged with "ENV" and "PRODUCTION".
type View struct {

	// An array of SearchFilter objects that specify which resources can be included
	// in the results of queries made using this view.
	Filters *SearchFilter

	// A structure that contains additional information about the view.
	IncludedProperties []IncludedProperty

	// The date and time when this view was last modified.
	LastUpdatedAt *time.Time

	// The Amazon Web Services account that owns this view.
	Owner *string

	// An Amazon resource name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
	// of an Amazon Web Services account, an organization, or an organizational unit
	// (OU) that specifies whether this view includes resources from only the specified
	// Amazon Web Services account, all accounts in the specified organization, or all
	// accounts in the specified OU. If not specified, the value defaults to the Amazon
	// Web Services account used to call this operation.
	Scope *string

	// The Amazon resource name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
	// of the view.
	ViewArn *string

	noSmithyDocumentSerde
}

type noSmithyDocumentSerde = smithydocument.NoSerde