/
types.go
690 lines (643 loc) · 30.6 KB
/
types.go
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
// 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.
// Code generated by ack-generate. DO NOT EDIT.
package v1alpha1
import (
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
"github.com/aws/aws-sdk-go/aws"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// Hack to avoid import errors during build...
var (
_ = &metav1.Time{}
_ = &aws.JSONValue{}
_ = ackv1alpha1.AWSAccountID("")
)
// An object that contains details about when a principal in the reported Organizations
// entity last attempted to access an Amazon Web Services service. A principal
// can be an IAM user, an IAM role, or the Amazon Web Services account root
// user within the reported Organizations entity.
//
// This data type is a response element in the GetOrganizationsAccessReport
// operation.
type AccessDetail struct {
LastAuthenticatedTime *metav1.Time `json:"lastAuthenticatedTime,omitempty"`
Region *string `json:"region,omitempty"`
}
// Contains information about an Amazon Web Services access key.
//
// This data type is used as a response element in the CreateAccessKey and ListAccessKeys
// operations.
//
// The SecretAccessKey value is returned only in response to CreateAccessKey.
// You can get a secret access key only when you first create an access key;
// you cannot recover the secret access key later. If you lose a secret access
// key, you must create a new access key.
type AccessKey struct {
CreateDate *metav1.Time `json:"createDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about the last time an Amazon Web Services access key
// was used since IAM began tracking this information on April 22, 2015.
//
// This data type is used as a response element in the GetAccessKeyLastUsed
// operation.
type AccessKeyLastUsed struct {
LastUsedDate *metav1.Time `json:"lastUsedDate,omitempty"`
Region *string `json:"region,omitempty"`
ServiceName *string `json:"serviceName,omitempty"`
}
// Contains information about an Amazon Web Services access key, without its
// secret key.
//
// This data type is used as a response element in the ListAccessKeys operation.
type AccessKeyMetadata struct {
CreateDate *metav1.Time `json:"createDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about an attached permissions boundary.
//
// An attached permissions boundary is a managed policy that has been attached
// to a user or role to set the permissions boundary.
//
// For more information about permissions boundaries, see Permissions boundaries
// for IAM identities (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html)
// in the IAM User Guide.
type AttachedPermissionsBoundary struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
PermissionsBoundaryARN *string `json:"permissionsBoundaryARN,omitempty"`
PermissionsBoundaryType *string `json:"permissionsBoundaryType,omitempty"`
}
// Contains information about an attached policy.
//
// An attached policy is a managed policy that has been attached to a user,
// group, or role. This data type is used as a response element in the ListAttachedGroupPolicies,
// ListAttachedRolePolicies, ListAttachedUserPolicies, and GetAccountAuthorizationDetails
// operations.
//
// For more information about managed policies, refer to Managed policies and
// inline policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
type AttachedPolicy struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
PolicyARN *string `json:"policyARN,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
}
// An object that contains details about when the IAM entities (users or roles)
// were last used in an attempt to access the specified Amazon Web Services
// service.
//
// This data type is a response element in the GetServiceLastAccessedDetailsWithEntities
// operation.
type EntityDetails struct {
LastAuthenticated *metav1.Time `json:"lastAuthenticated,omitempty"`
}
// Contains details about the specified entity (user or role).
//
// This data type is an element of the EntityDetails object.
type EntityInfo struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Path *string `json:"path,omitempty"`
}
// Contains information about the reason that the operation failed.
//
// This data type is used as a response element in the GetOrganizationsAccessReport,
// GetServiceLastAccessedDetails, and GetServiceLastAccessedDetailsWithEntities
// operations.
type ErrorDetails struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
}
// Contains information about an IAM group, including all of the group's policies.
//
// This data type is used as a response element in the GetAccountAuthorizationDetails
// operation.
type GroupDetail struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
GroupID *string `json:"groupID,omitempty"`
GroupName *string `json:"groupName,omitempty"`
Path *string `json:"path,omitempty"`
}
// Contains information about an IAM group entity.
//
// This data type is used as a response element in the following operations:
//
// - CreateGroup
//
// - GetGroup
//
// - ListGroups
type Group_SDK struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
GroupID *string `json:"groupID,omitempty"`
GroupName *string `json:"groupName,omitempty"`
Path *string `json:"path,omitempty"`
}
// Contains information about an instance profile.
//
// This data type is used as a response element in the following operations:
//
// - CreateInstanceProfile
//
// - GetInstanceProfile
//
// - ListInstanceProfiles
//
// - ListInstanceProfilesForRole
type InstanceProfile_SDK struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
InstanceProfileID *string `json:"instanceProfileID,omitempty"`
InstanceProfileName *string `json:"instanceProfileName,omitempty"`
Path *string `json:"path,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
}
// Contains the user name and password create date for a user.
//
// This data type is used as a response element in the CreateLoginProfile and
// GetLoginProfile operations.
type LoginProfile struct {
CreateDate *metav1.Time `json:"createDate,omitempty"`
PasswordResetRequired *bool `json:"passwordResetRequired,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about an MFA device.
//
// This data type is used as a response element in the ListMFADevices operation.
type MFADevice struct {
EnableDate *metav1.Time `json:"enableDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about a managed policy, including the policy's ARN,
// versions, and the number of principal entities (users, groups, and roles)
// that the policy is attached to.
//
// This data type is used as a response element in the GetAccountAuthorizationDetails
// operation.
//
// For more information about managed policies, see Managed policies and inline
// policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
type ManagedPolicyDetail struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
AttachmentCount *int64 `json:"attachmentCount,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
DefaultVersionID *string `json:"defaultVersionID,omitempty"`
Description *string `json:"description,omitempty"`
IsAttachable *bool `json:"isAttachable,omitempty"`
Path *string `json:"path,omitempty"`
PermissionsBoundaryUsageCount *int64 `json:"permissionsBoundaryUsageCount,omitempty"`
PolicyID *string `json:"policyID,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
UpdateDate *metav1.Time `json:"updateDate,omitempty"`
}
// Contains the Amazon Resource Name (ARN) for an IAM OpenID Connect provider.
type OpenIDConnectProviderListEntry struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
}
// Contains information about the effect that Organizations has on a policy
// simulation.
type OrganizationsDecisionDetail struct {
AllowedByOrganizations *bool `json:"allowedByOrganizations,omitempty"`
}
// Contains information about the account password policy.
//
// This data type is used as a response element in the GetAccountPasswordPolicy
// operation.
type PasswordPolicy struct {
AllowUsersToChangePassword *bool `json:"allowUsersToChangePassword,omitempty"`
ExpirePasswords *bool `json:"expirePasswords,omitempty"`
RequireLowercaseCharacters *bool `json:"requireLowercaseCharacters,omitempty"`
RequireNumbers *bool `json:"requireNumbers,omitempty"`
RequireSymbols *bool `json:"requireSymbols,omitempty"`
RequireUppercaseCharacters *bool `json:"requireUppercaseCharacters,omitempty"`
}
// Contains information about the effect that a permissions boundary has on
// a policy simulation when the boundary is applied to an IAM entity.
type PermissionsBoundaryDecisionDetail struct {
AllowedByPermissionsBoundary *bool `json:"allowedByPermissionsBoundary,omitempty"`
}
// Contains information about an IAM policy, including the policy document.
//
// This data type is used as a response element in the GetAccountAuthorizationDetails
// operation.
type PolicyDetail struct {
PolicyDocument *string `json:"policyDocument,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
}
// Contains details about the permissions policies that are attached to the
// specified identity (user, group, or role).
//
// This data type is an element of the ListPoliciesGrantingServiceAccessEntry
// object.
type PolicyGrantingServiceAccess struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
PolicyARN *string `json:"policyARN,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
}
// Contains information about a group that a managed policy is attached to.
//
// This data type is used as a response element in the ListEntitiesForPolicy
// operation.
//
// For more information about managed policies, refer to Managed policies and
// inline policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
type PolicyGroup struct {
GroupID *string `json:"groupID,omitempty"`
GroupName *string `json:"groupName,omitempty"`
}
// Contains information about a role that a managed policy is attached to.
//
// This data type is used as a response element in the ListEntitiesForPolicy
// operation.
//
// For more information about managed policies, refer to Managed policies and
// inline policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
type PolicyRole struct {
RoleID *string `json:"roleID,omitempty"`
RoleName *string `json:"roleName,omitempty"`
}
// Contains information about a user that a managed policy is attached to.
//
// This data type is used as a response element in the ListEntitiesForPolicy
// operation.
//
// For more information about managed policies, refer to Managed policies and
// inline policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
type PolicyUser struct {
UserID *string `json:"userID,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about a version of a managed policy.
//
// This data type is used as a response element in the CreatePolicyVersion,
// GetPolicyVersion, ListPolicyVersions, and GetAccountAuthorizationDetails
// operations.
//
// For more information about managed policies, refer to Managed policies and
// inline policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
type PolicyVersion struct {
CreateDate *metav1.Time `json:"createDate,omitempty"`
Document *string `json:"document,omitempty"`
IsDefaultVersion *bool `json:"isDefaultVersion,omitempty"`
VersionID *string `json:"versionID,omitempty"`
}
// Contains information about a managed policy.
//
// This data type is used as a response element in the CreatePolicy, GetPolicy,
// and ListPolicies operations.
//
// For more information about managed policies, refer to Managed policies and
// inline policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
// in the IAM User Guide.
type Policy_SDK struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
AttachmentCount *int64 `json:"attachmentCount,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
DefaultVersionID *string `json:"defaultVersionID,omitempty"`
Description *string `json:"description,omitempty"`
IsAttachable *bool `json:"isAttachable,omitempty"`
Path *string `json:"path,omitempty"`
PermissionsBoundaryUsageCount *int64 `json:"permissionsBoundaryUsageCount,omitempty"`
PolicyID *string `json:"policyID,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
UpdateDate *metav1.Time `json:"updateDate,omitempty"`
}
// Contains information about an IAM role, including all of the role's policies.
//
// This data type is used as a response element in the GetAccountAuthorizationDetails
// operation.
type RoleDetail struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
AssumeRolePolicyDocument *string `json:"assumeRolePolicyDocument,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
// Contains a list of instance profiles.
InstanceProfileList []*InstanceProfile_SDK `json:"instanceProfileList,omitempty"`
Path *string `json:"path,omitempty"`
// Contains information about an attached permissions boundary.
//
// An attached permissions boundary is a managed policy that has been attached
// to a user or role to set the permissions boundary.
//
// For more information about permissions boundaries, see Permissions boundaries
// for IAM identities (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html)
// in the IAM User Guide.
PermissionsBoundary *AttachedPermissionsBoundary `json:"permissionsBoundary,omitempty"`
RoleID *string `json:"roleID,omitempty"`
// Contains information about the last time that an IAM role was used. This
// includes the date and time and the Region in which the role was last used.
// Activity is only reported for the trailing 400 days. This period can be shorter
// if your Region began supporting these features within the last year. The
// role might have been used more than 400 days ago. For more information, see
// Regions where data is tracked (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period)
// in the IAM user Guide.
//
// This data type is returned as a response element in the GetRole and GetAccountAuthorizationDetails
// operations.
RoleLastUsed *RoleLastUsed `json:"roleLastUsed,omitempty"`
RoleName *string `json:"roleName,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
}
// Contains information about the last time that an IAM role was used. This
// includes the date and time and the Region in which the role was last used.
// Activity is only reported for the trailing 400 days. This period can be shorter
// if your Region began supporting these features within the last year. The
// role might have been used more than 400 days ago. For more information, see
// Regions where data is tracked (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period)
// in the IAM user Guide.
//
// This data type is returned as a response element in the GetRole and GetAccountAuthorizationDetails
// operations.
type RoleLastUsed struct {
LastUsedDate *metav1.Time `json:"lastUsedDate,omitempty"`
Region *string `json:"region,omitempty"`
}
// Contains information about an IAM role. This structure is returned as a response
// element in several API operations that interact with roles.
type Role_SDK struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
AssumeRolePolicyDocument *string `json:"assumeRolePolicyDocument,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
Description *string `json:"description,omitempty"`
MaxSessionDuration *int64 `json:"maxSessionDuration,omitempty"`
Path *string `json:"path,omitempty"`
// Contains information about an attached permissions boundary.
//
// An attached permissions boundary is a managed policy that has been attached
// to a user or role to set the permissions boundary.
//
// For more information about permissions boundaries, see Permissions boundaries
// for IAM identities (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html)
// in the IAM User Guide.
PermissionsBoundary *AttachedPermissionsBoundary `json:"permissionsBoundary,omitempty"`
RoleID *string `json:"roleID,omitempty"`
// Contains information about the last time that an IAM role was used. This
// includes the date and time and the Region in which the role was last used.
// Activity is only reported for the trailing 400 days. This period can be shorter
// if your Region began supporting these features within the last year. The
// role might have been used more than 400 days ago. For more information, see
// Regions where data is tracked (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period)
// in the IAM user Guide.
//
// This data type is returned as a response element in the GetRole and GetAccountAuthorizationDetails
// operations.
RoleLastUsed *RoleLastUsed `json:"roleLastUsed,omitempty"`
RoleName *string `json:"roleName,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
}
// Contains the list of SAML providers for this account.
type SAMLProviderListEntry struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
ValidUntil *metav1.Time `json:"validUntil,omitempty"`
}
// Contains information about an SSH public key.
//
// This data type is used as a response element in the GetSSHPublicKey and UploadSSHPublicKey
// operations.
type SSHPublicKey struct {
UploadDate *metav1.Time `json:"uploadDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about an SSH public key, without the key's body or fingerprint.
//
// This data type is used as a response element in the ListSSHPublicKeys operation.
type SSHPublicKeyMetadata struct {
UploadDate *metav1.Time `json:"uploadDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about a server certificate.
//
// This data type is used as a response element in the GetServerCertificate
// operation.
type ServerCertificate struct {
Tags []*Tag `json:"tags,omitempty"`
}
// Contains information about a server certificate without its certificate body,
// certificate chain, and private key.
//
// This data type is used as a response element in the UploadServerCertificate
// and ListServerCertificates operations.
type ServerCertificateMetadata struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
Expiration *metav1.Time `json:"expiration,omitempty"`
Path *string `json:"path,omitempty"`
ServerCertificateID *string `json:"serverCertificateID,omitempty"`
UploadDate *metav1.Time `json:"uploadDate,omitempty"`
}
// Contains details about the most recent attempt to access the service.
//
// This data type is used as a response element in the GetServiceLastAccessedDetails
// operation.
type ServiceLastAccessed struct {
LastAuthenticated *metav1.Time `json:"lastAuthenticated,omitempty"`
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
LastAuthenticatedEntity *string `json:"lastAuthenticatedEntity,omitempty"`
LastAuthenticatedRegion *string `json:"lastAuthenticatedRegion,omitempty"`
}
// Contains the details of a service-specific credential.
type ServiceSpecificCredential struct {
CreateDate *metav1.Time `json:"createDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains additional details about a service-specific credential.
type ServiceSpecificCredentialMetadata struct {
CreateDate *metav1.Time `json:"createDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about an X.509 signing certificate.
//
// This data type is used as a response element in the UploadSigningCertificate
// and ListSigningCertificates operations.
type SigningCertificate struct {
UploadDate *metav1.Time `json:"uploadDate,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// A structure that represents user-provided metadata that can be associated
// with an IAM resource. For more information about tagging, see Tagging IAM
// resources (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html)
// in the IAM User Guide.
type Tag struct {
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
}
// Contains details about the most recent attempt to access an action within
// the service.
//
// This data type is used as a response element in the GetServiceLastAccessedDetails
// operation.
type TrackedActionLastAccessed struct {
ActionName *string `json:"actionName,omitempty"`
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
LastAccessedEntity *string `json:"lastAccessedEntity,omitempty"`
LastAccessedRegion *string `json:"lastAccessedRegion,omitempty"`
LastAccessedTime *metav1.Time `json:"lastAccessedTime,omitempty"`
}
// Contains information about an IAM user, including all the user's policies
// and all the IAM groups the user is in.
//
// This data type is used as a response element in the GetAccountAuthorizationDetails
// operation.
type UserDetail struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
Path *string `json:"path,omitempty"`
// Contains information about an attached permissions boundary.
//
// An attached permissions boundary is a managed policy that has been attached
// to a user or role to set the permissions boundary.
//
// For more information about permissions boundaries, see Permissions boundaries
// for IAM identities (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html)
// in the IAM User Guide.
PermissionsBoundary *AttachedPermissionsBoundary `json:"permissionsBoundary,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
UserID *string `json:"userID,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about an IAM user entity.
//
// This data type is used as a response element in the following operations:
//
// - CreateUser
//
// - GetUser
//
// - ListUsers
type User_SDK struct {
// The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web
// Services resources.
//
// For more information about ARNs, go to Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
ARN *string `json:"arn,omitempty"`
CreateDate *metav1.Time `json:"createDate,omitempty"`
PasswordLastUsed *metav1.Time `json:"passwordLastUsed,omitempty"`
Path *string `json:"path,omitempty"`
// Contains information about an attached permissions boundary.
//
// An attached permissions boundary is a managed policy that has been attached
// to a user or role to set the permissions boundary.
//
// For more information about permissions boundaries, see Permissions boundaries
// for IAM identities (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html)
// in the IAM User Guide.
PermissionsBoundary *AttachedPermissionsBoundary `json:"permissionsBoundary,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
UserID *string `json:"userID,omitempty"`
UserName *string `json:"userName,omitempty"`
}
// Contains information about a virtual MFA device.
type VirtualMFADevice struct {
EnableDate *metav1.Time `json:"enableDate,omitempty"`
Tags []*Tag `json:"tags,omitempty"`
// Contains information about an IAM user entity.
//
// This data type is used as a response element in the following operations:
//
// * CreateUser
//
// * GetUser
//
// * ListUsers
User *User_SDK `json:"user,omitempty"`
}