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 (684 lines) | stat: -rw-r--r-- 19,719 bytes parent folder | download | duplicates (4)
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
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	smithydocument "github.com/aws/smithy-go/document"
)

// The authentication settings for accessing provisioned data models in your
// Amplify project.
type BackendAPIAppSyncAuthSettings struct {

	// The Amazon Cognito user pool ID, if Amazon Cognito was used as an
	// authentication setting to access your data models.
	CognitoUserPoolId *string

	// The API key description for API_KEY, if it was used as an authentication
	// mechanism to access your data models.
	Description *string

	// The API key expiration time for API_KEY, if it was used as an authentication
	// mechanism to access your data models.
	ExpirationTime *float64

	// The expiry time for the OpenID authentication mechanism.
	OpenIDAuthTTL *string

	// The clientID for openID, if openID was used as an authentication setting to
	// access your data models.
	OpenIDClientId *string

	// The expiry time for the OpenID authentication mechanism.
	OpenIDIatTTL *string

	// The openID issuer URL, if openID was used as an authentication setting to
	// access your data models.
	OpenIDIssueURL *string

	// The OpenID provider name, if OpenID was used as an authentication mechanism to
	// access your data models.
	OpenIDProviderName *string

	noSmithyDocumentSerde
}

// Describes the auth types for your configured data models.
type BackendAPIAuthType struct {

	// Describes the authentication mode.
	Mode Mode

	// Describes settings for the authentication mode.
	Settings *BackendAPIAppSyncAuthSettings

	noSmithyDocumentSerde
}

// Describes the conflict resolution configuration for your data model configured
// in your Amplify project.
type BackendAPIConflictResolution struct {

	// The strategy for conflict resolution.
	ResolutionStrategy ResolutionStrategy

	noSmithyDocumentSerde
}

// The resource config for the data model, configured as a part of the Amplify
// project.
type BackendAPIResourceConfig struct {

	// Additional authentication methods used to interact with your data models.
	AdditionalAuthTypes []BackendAPIAuthType

	// The API name used to interact with the data model, configured as a part of your
	// Amplify project.
	ApiName *string

	// The conflict resolution strategy for your data stored in the data models.
	ConflictResolution *BackendAPIConflictResolution

	// The default authentication type for interacting with the configured data models
	// in your Amplify project.
	DefaultAuthType *BackendAPIAuthType

	// The service used to provision and interact with the data model.
	Service *string

	// The definition of the data model in the annotated transform of the GraphQL
	// schema.
	TransformSchema *string

	noSmithyDocumentSerde
}

// Describes Apple social federation configurations for allowing your app users to
// sign in using OAuth.
type BackendAuthAppleProviderConfig struct {

	// Describes the client_id (also called Services ID) that comes from Apple.
	ClientId *string

	// Describes the key_id that comes from Apple.
	KeyId *string

	// Describes the private_key that comes from Apple.
	PrivateKey *string

	// Describes the team_id that comes from Apple.
	TeamId *string

	noSmithyDocumentSerde
}

// Describes third-party social federation configurations for allowing your app
// users to sign in using OAuth.
type BackendAuthSocialProviderConfig struct {

	// Describes the client_id, which can be obtained from the third-party social
	// federation provider.
	ClientId *string

	// Describes the client_secret, which can be obtained from third-party social
	// federation providers.
	ClientSecret *string

	noSmithyDocumentSerde
}

// The response object for this operation.
type BackendJobRespObj struct {

	// The app ID.
	//
	// This member is required.
	AppId *string

	// The name of the backend environment.
	//
	// This member is required.
	BackendEnvironmentName *string

	// The time when the job was created.
	CreateTime *string

	// If the request fails, this error is returned.
	Error *string

	// The ID for the job.
	JobId *string

	// The name of the operation.
	Operation *string

	// The current status of the request.
	Status *string

	// The time when the job was last updated.
	UpdateTime *string

	noSmithyDocumentSerde
}

// Describes the read, write, and delete permissions users have against your
// storage S3 bucket.
type BackendStoragePermissions struct {

	// Lists all authenticated user read, write, and delete permissions for your S3
	// bucket.
	//
	// This member is required.
	Authenticated []AuthenticatedElement

	// Lists all unauthenticated user read, write, and delete permissions for your S3
	// bucket.
	UnAuthenticated []UnAuthenticatedElement

	noSmithyDocumentSerde
}

// (DEPRECATED) Describes the forgot password policy for authenticating into the
// Amplify app.
type CreateBackendAuthForgotPasswordConfig struct {

	// (DEPRECATED) Describes which mode to use (either SMS or email) to deliver
	// messages to app users who want to recover their password.
	//
	// This member is required.
	DeliveryMethod DeliveryMethod

	// (DEPRECATED) The configuration for the email sent when an app user forgets
	// their password.
	EmailSettings *EmailSettings

	// (DEPRECATED) The configuration for the SMS message sent when an app user
	// forgets their password.
	SmsSettings *SmsSettings

	noSmithyDocumentSerde
}

// Describes authorization configurations for the auth resources, configured as a
// part of your Amplify project.
type CreateBackendAuthIdentityPoolConfig struct {

	// Name of the Amazon Cognito identity pool used for authorization.
	//
	// This member is required.
	IdentityPoolName *string

	// Set to true or false based on whether you want to enable guest authorization to
	// your Amplify app.
	//
	// This member is required.
	UnauthenticatedLogin *bool

	noSmithyDocumentSerde
}

// Describes whether to apply multi-factor authentication policies for your Amazon
// Cognito user pool configured as a part of your Amplify project.
type CreateBackendAuthMFAConfig struct {

	// Describes whether MFA should be [ON, OFF, or OPTIONAL] for authentication in
	// your Amplify project.
	//
	// This member is required.
	MFAMode MFAMode

	// Describes the configuration settings and methods for your Amplify app users to
	// use MFA.
	Settings *Settings

	noSmithyDocumentSerde
}

// Creates the OAuth configuration for your Amplify project.
type CreateBackendAuthOAuthConfig struct {

	// The OAuth grant type that you use to allow app users to authenticate from your
	// Amplify app.
	//
	// This member is required.
	OAuthGrantType OAuthGrantType

	// List of OAuth-related flows used to allow your app users to authenticate from
	// your Amplify app.
	//
	// This member is required.
	OAuthScopes []OAuthScopesElement

	// The redirected URI for signing in to your Amplify app.
	//
	// This member is required.
	RedirectSignInURIs []string

	// Redirect URLs that OAuth uses when a user signs out of an Amplify app.
	//
	// This member is required.
	RedirectSignOutURIs []string

	// The domain prefix for your Amplify app.
	DomainPrefix *string

	// The settings for using social providers to access your Amplify app.
	SocialProviderSettings *SocialProviderSettings

	noSmithyDocumentSerde
}

// The password policy configuration for the backend to your Amplify project.
type CreateBackendAuthPasswordPolicyConfig struct {

	// The minimum length of the password used to access the backend of your Amplify
	// project.
	//
	// This member is required.
	MinimumLength *float64

	// Additional constraints for the password used to access the backend of your
	// Amplify project.
	AdditionalConstraints []AdditionalConstraintsElement

	noSmithyDocumentSerde
}

// Defines the resource configuration when creating an auth resource in your
// Amplify project.
type CreateBackendAuthResourceConfig struct {

	// Defines whether you want to configure only authentication or both
	// authentication and authorization settings.
	//
	// This member is required.
	AuthResources AuthResources

	// Defines the service name to use when configuring an authentication resource in
	// your Amplify project.
	//
	// This member is required.
	Service Service

	// Describes authentication configuration for the Amazon Cognito user pool,
	// provisioned as a part of your auth resource in the Amplify project.
	//
	// This member is required.
	UserPoolConfigs *CreateBackendAuthUserPoolConfig

	// Describes the authorization configuration for the Amazon Cognito identity pool,
	// provisioned as a part of your auth resource in the Amplify project.
	IdentityPoolConfigs *CreateBackendAuthIdentityPoolConfig

	noSmithyDocumentSerde
}

// Describes the Amazon Cognito user pool configuration for the auth resource to
// be configured for your Amplify project.
type CreateBackendAuthUserPoolConfig struct {

	// The required attributes to sign up new users in the user pool.
	//
	// This member is required.
	RequiredSignUpAttributes []RequiredSignUpAttributesElement

	// Describes the sign-in methods that your Amplify app users use to log in using
	// the Amazon Cognito user pool, configured as a part of your Amplify project.
	//
	// This member is required.
	SignInMethod SignInMethod

	// The Amazon Cognito user pool name.
	//
	// This member is required.
	UserPoolName *string

	// (DEPRECATED) Describes the forgotten password policy for your Amazon Cognito
	// user pool, configured as a part of your Amplify project.
	ForgotPassword *CreateBackendAuthForgotPasswordConfig

	// Describes whether to apply multi-factor authentication policies for your Amazon
	// Cognito user pool configured as a part of your Amplify project.
	Mfa *CreateBackendAuthMFAConfig

	// Describes the OAuth policy and rules for your Amazon Cognito user pool,
	// configured as a part of your Amplify project.
	OAuth *CreateBackendAuthOAuthConfig

	// Describes the password policy for your Amazon Cognito user pool, configured as
	// a part of your Amplify project.
	PasswordPolicy *CreateBackendAuthPasswordPolicyConfig

	// Describes the email or SMS verification message for your Amazon Cognito user
	// pool, configured as a part of your Amplify project.
	VerificationMessage *CreateBackendAuthVerificationMessageConfig

	noSmithyDocumentSerde
}

// Creates an email or SMS verification message for the auth resource configured
// for your Amplify project.
type CreateBackendAuthVerificationMessageConfig struct {

	// The type of verification message to send.
	//
	// This member is required.
	DeliveryMethod DeliveryMethod

	// The settings for the email message.
	EmailSettings *EmailSettings

	// The settings for the SMS message.
	SmsSettings *SmsSettings

	noSmithyDocumentSerde
}

// The resource configuration for creating backend storage.
type CreateBackendStorageResourceConfig struct {

	// The authorization configuration for the storage S3 bucket.
	//
	// This member is required.
	Permissions *BackendStoragePermissions

	// The name of the storage service.
	//
	// This member is required.
	ServiceName ServiceName

	// The name of the S3 bucket.
	BucketName *string

	noSmithyDocumentSerde
}

// The configuration for the email sent when an app user forgets their password.
type EmailSettings struct {

	// The contents of the email message.
	EmailMessage *string

	// The contents of the subject line of the email message.
	EmailSubject *string

	noSmithyDocumentSerde
}

// The details for a backend storage resource.
type GetBackendStorageResourceConfig struct {

	// Returns True if the storage resource has been imported.
	//
	// This member is required.
	Imported *bool

	// The name of the storage service.
	//
	// This member is required.
	ServiceName ServiceName

	// The name of the S3 bucket.
	BucketName *string

	// The authorization configuration for the storage S3 bucket.
	Permissions *BackendStoragePermissions

	noSmithyDocumentSerde
}

// The request object for this operation.
type LoginAuthConfigReqObj struct {

	// The Amazon Cognito identity pool ID used for the Amplify Admin UI login
	// authorization.
	AwsCognitoIdentityPoolId *string

	// The AWS Region for the Amplify Admin UI login.
	AwsCognitoRegion *string

	// The Amazon Cognito user pool ID used for Amplify Admin UI login authentication.
	AwsUserPoolsId *string

	// The web client ID for the Amazon Cognito user pools.
	AwsUserPoolsWebClientId *string

	noSmithyDocumentSerde
}

// Defines the resource configuration for the data model in your Amplify project.
type ResourceConfig struct {
	noSmithyDocumentSerde
}

// Describes the metadata of the S3 bucket.
type S3BucketInfo struct {

	// The creation date of the S3 bucket.
	CreationDate *string

	// The name of the S3 bucket.
	Name *string

	noSmithyDocumentSerde
}

// The settings of your MFA configuration for the backend of your Amplify project.
type Settings struct {

	// The supported MFA types.
	MfaTypes []MfaTypesElement

	// The body of the SMS message.
	SmsMessage *string

	noSmithyDocumentSerde
}

// SMS settings for authentication.
type SmsSettings struct {

	// The contents of the SMS message.
	SmsMessage *string

	noSmithyDocumentSerde
}

// The settings for using the social identity providers for access to your Amplify
// app.
type SocialProviderSettings struct {

	// Describes third-party social federation configurations for allowing your app
	// users to sign in using OAuth.
	Facebook *BackendAuthSocialProviderConfig

	// Describes third-party social federation configurations for allowing your app
	// users to sign in using OAuth.
	Google *BackendAuthSocialProviderConfig

	// Describes third-party social federation configurations for allowing your app
	// users to sign in using OAuth.
	LoginWithAmazon *BackendAuthSocialProviderConfig

	// Describes Apple social federation configurations for allowing your app users to
	// sign in using OAuth.
	SignInWithApple *BackendAuthAppleProviderConfig

	noSmithyDocumentSerde
}

// (DEPRECATED) Describes the forgot password policy for authenticating into the
// Amplify app.
type UpdateBackendAuthForgotPasswordConfig struct {

	// (DEPRECATED) Describes which mode to use (either SMS or email) to deliver
	// messages to app users that want to recover their password.
	DeliveryMethod DeliveryMethod

	// (DEPRECATED) The configuration for the email sent when an app user forgets
	// their password.
	EmailSettings *EmailSettings

	// (DEPRECATED) The configuration for the SMS message sent when an Amplify app
	// user forgets their password.
	SmsSettings *SmsSettings

	noSmithyDocumentSerde
}

// Describes the authorization configuration for the Amazon Cognito identity pool,
// provisioned as a part of your auth resource in the Amplify project.
type UpdateBackendAuthIdentityPoolConfig struct {

	// A boolean value that can be set to allow or disallow guest-level authorization
	// into your Amplify app.
	UnauthenticatedLogin *bool

	noSmithyDocumentSerde
}

// Updates the multi-factor authentication (MFA) configuration for the backend of
// your Amplify project.
type UpdateBackendAuthMFAConfig struct {

	// The MFA mode for the backend of your Amplify project.
	MFAMode MFAMode

	// The settings of your MFA configuration for the backend of your Amplify project.
	Settings *Settings

	noSmithyDocumentSerde
}

// The OAuth configurations for authenticating users into your Amplify app.
type UpdateBackendAuthOAuthConfig struct {

	// The Amazon Cognito domain prefix used to create a hosted UI for authentication.
	DomainPrefix *string

	// The OAuth grant type to allow app users to authenticate from your Amplify app.
	OAuthGrantType OAuthGrantType

	// The list of OAuth-related flows that can allow users to authenticate from your
	// Amplify app.
	OAuthScopes []OAuthScopesElement

	// Redirect URLs that OAuth uses when a user signs in to an Amplify app.
	RedirectSignInURIs []string

	// Redirect URLs that OAuth uses when a user signs out of an Amplify app.
	RedirectSignOutURIs []string

	// Describes third-party social federation configurations for allowing your users
	// to sign in with OAuth.
	SocialProviderSettings *SocialProviderSettings

	noSmithyDocumentSerde
}

// Describes the password policy for your Amazon Cognito user pool configured as a
// part of your Amplify project.
type UpdateBackendAuthPasswordPolicyConfig struct {

	// Describes additional constraints on password requirements to sign in to the
	// auth resource, configured as a part of your Amplify project.
	AdditionalConstraints []AdditionalConstraintsElement

	// Describes the minimum length of the password required to sign in to the auth
	// resource, configured as a part of your Amplify project.
	MinimumLength *float64

	noSmithyDocumentSerde
}

// Defines the resource configuration when updating an authentication resource in
// your Amplify project.
type UpdateBackendAuthResourceConfig struct {

	// Defines the service name to use when configuring an authentication resource in
	// your Amplify project.
	//
	// This member is required.
	AuthResources AuthResources

	// Defines the service name to use when configuring an authentication resource in
	// your Amplify project.
	//
	// This member is required.
	Service Service

	// Describes the authentication configuration for the Amazon Cognito user pool,
	// provisioned as a part of your auth resource in the Amplify project.
	//
	// This member is required.
	UserPoolConfigs *UpdateBackendAuthUserPoolConfig

	// Describes the authorization configuration for the Amazon Cognito identity pool,
	// provisioned as a part of your auth resource in the Amplify project.
	IdentityPoolConfigs *UpdateBackendAuthIdentityPoolConfig

	noSmithyDocumentSerde
}

// Describes the Amazon Cognito user pool configuration for the authorization
// resource to be configured for your Amplify project on an update.
type UpdateBackendAuthUserPoolConfig struct {

	// (DEPRECATED) Describes the forgot password policy for your Amazon Cognito user
	// pool, configured as a part of your Amplify project.
	ForgotPassword *UpdateBackendAuthForgotPasswordConfig

	// Describes whether to apply multi-factor authentication policies for your Amazon
	// Cognito user pool configured as a part of your Amplify project.
	Mfa *UpdateBackendAuthMFAConfig

	// Describes the OAuth policy and rules for your Amazon Cognito user pool,
	// configured as a part of your Amplify project.
	OAuth *UpdateBackendAuthOAuthConfig

	// Describes the password policy for your Amazon Cognito user pool, configured as
	// a part of your Amplify project.
	PasswordPolicy *UpdateBackendAuthPasswordPolicyConfig

	// Describes the email or SMS verification message for your Amazon Cognito user
	// pool, configured as a part of your Amplify project.
	VerificationMessage *UpdateBackendAuthVerificationMessageConfig

	noSmithyDocumentSerde
}

// Updates the configuration of the email or SMS message for the auth resource
// configured for your Amplify project.
type UpdateBackendAuthVerificationMessageConfig struct {

	// The type of verification message to send.
	//
	// This member is required.
	DeliveryMethod DeliveryMethod

	// The settings for the email message.
	EmailSettings *EmailSettings

	// The settings for the SMS message.
	SmsSettings *SmsSettings

	noSmithyDocumentSerde
}

// The resource configuration for updating backend storage.
type UpdateBackendStorageResourceConfig struct {

	// The authorization configuration for the storage S3 bucket.
	//
	// This member is required.
	Permissions *BackendStoragePermissions

	// The name of the storage service.
	//
	// This member is required.
	ServiceName ServiceName

	noSmithyDocumentSerde
}

type noSmithyDocumentSerde = smithydocument.NoSerde