@aws-sdk/client-amplifybackend 3.300.0 → 3.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +91 -107
- package/dist-es/models/models_0.js +91 -107
- package/dist-types/commands/CloneBackendCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendAPICommand.d.ts +6 -6
- package/dist-types/commands/CreateBackendAuthCommand.d.ts +20 -20
- package/dist-types/commands/CreateBackendCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendConfigCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackendStorageCommand.d.ts +5 -5
- package/dist-types/commands/CreateTokenCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackendAPICommand.d.ts +6 -6
- package/dist-types/commands/DeleteBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackendCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackendStorageCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTokenCommand.d.ts +1 -1
- package/dist-types/commands/GenerateBackendAPIModelsCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendAPICommand.d.ts +6 -6
- package/dist-types/commands/GetBackendAPIModelsCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendJobCommand.d.ts +1 -1
- package/dist-types/commands/GetBackendStorageCommand.d.ts +1 -1
- package/dist-types/commands/GetTokenCommand.d.ts +1 -1
- package/dist-types/commands/ImportBackendAuthCommand.d.ts +1 -1
- package/dist-types/commands/ImportBackendStorageCommand.d.ts +1 -1
- package/dist-types/commands/ListBackendJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListS3BucketsCommand.d.ts +1 -1
- package/dist-types/commands/RemoveAllBackendsCommand.d.ts +1 -1
- package/dist-types/commands/RemoveBackendConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackendAPICommand.d.ts +6 -6
- package/dist-types/commands/UpdateBackendAuthCommand.d.ts +19 -19
- package/dist-types/commands/UpdateBackendConfigCommand.d.ts +2 -2
- package/dist-types/commands/UpdateBackendJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackendStorageCommand.d.ts +5 -5
- package/dist-types/models/models_0.d.ts +171 -91
- package/dist-types/ts3.4/models/models_0.d.ts +116 -91
- package/package.json +34 -34
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Status = exports.ServiceName = exports.UnAuthenticatedElement = exports.AuthenticatedElement = exports.SignInMethod = exports.RequiredSignUpAttributesElement = exports.OAuthScopesElement = exports.OAuthGrantType = exports.MfaTypesElement = exports.MFAMode = exports.DeliveryMethod = exports.Service = exports.AuthResources = exports.ResolutionStrategy = exports.Mode = exports.TooManyRequestsException = exports.NotFoundException = exports.GatewayTimeoutException = exports.BadRequestException = exports.AdditionalConstraintsElement = void 0;
|
|
4
4
|
const AmplifyBackendServiceException_1 = require("./AmplifyBackendServiceException");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})(AdditionalConstraintsElement = exports.AdditionalConstraintsElement || (exports.AdditionalConstraintsElement = {}));
|
|
5
|
+
exports.AdditionalConstraintsElement = {
|
|
6
|
+
REQUIRE_DIGIT: "REQUIRE_DIGIT",
|
|
7
|
+
REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
|
|
8
|
+
REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
|
|
9
|
+
REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
|
|
10
|
+
};
|
|
12
11
|
class BadRequestException extends AmplifyBackendServiceException_1.AmplifyBackendServiceException {
|
|
13
12
|
constructor(opts) {
|
|
14
13
|
super({
|
|
@@ -67,103 +66,88 @@ class TooManyRequestsException extends AmplifyBackendServiceException_1.AmplifyB
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
exports.TooManyRequestsException = TooManyRequestsException;
|
|
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
|
-
var UnAuthenticatedElement;
|
|
156
|
-
(function (UnAuthenticatedElement) {
|
|
157
|
-
UnAuthenticatedElement["CREATE_AND_UPDATE"] = "CREATE_AND_UPDATE";
|
|
158
|
-
UnAuthenticatedElement["DELETE"] = "DELETE";
|
|
159
|
-
UnAuthenticatedElement["READ"] = "READ";
|
|
160
|
-
})(UnAuthenticatedElement = exports.UnAuthenticatedElement || (exports.UnAuthenticatedElement = {}));
|
|
161
|
-
var ServiceName;
|
|
162
|
-
(function (ServiceName) {
|
|
163
|
-
ServiceName["S3"] = "S3";
|
|
164
|
-
})(ServiceName = exports.ServiceName || (exports.ServiceName = {}));
|
|
165
|
-
var Status;
|
|
166
|
-
(function (Status) {
|
|
167
|
-
Status["LATEST"] = "LATEST";
|
|
168
|
-
Status["STALE"] = "STALE";
|
|
169
|
-
})(Status = exports.Status || (exports.Status = {}));
|
|
69
|
+
exports.Mode = {
|
|
70
|
+
AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
|
|
71
|
+
API_KEY: "API_KEY",
|
|
72
|
+
AWS_IAM: "AWS_IAM",
|
|
73
|
+
OPENID_CONNECT: "OPENID_CONNECT",
|
|
74
|
+
};
|
|
75
|
+
exports.ResolutionStrategy = {
|
|
76
|
+
AUTOMERGE: "AUTOMERGE",
|
|
77
|
+
LAMBDA: "LAMBDA",
|
|
78
|
+
NONE: "NONE",
|
|
79
|
+
OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
|
|
80
|
+
};
|
|
81
|
+
exports.AuthResources = {
|
|
82
|
+
IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
|
|
83
|
+
USER_POOL_ONLY: "USER_POOL_ONLY",
|
|
84
|
+
};
|
|
85
|
+
exports.Service = {
|
|
86
|
+
COGNITO: "COGNITO",
|
|
87
|
+
};
|
|
88
|
+
exports.DeliveryMethod = {
|
|
89
|
+
EMAIL: "EMAIL",
|
|
90
|
+
SMS: "SMS",
|
|
91
|
+
};
|
|
92
|
+
exports.MFAMode = {
|
|
93
|
+
OFF: "OFF",
|
|
94
|
+
ON: "ON",
|
|
95
|
+
OPTIONAL: "OPTIONAL",
|
|
96
|
+
};
|
|
97
|
+
exports.MfaTypesElement = {
|
|
98
|
+
SMS: "SMS",
|
|
99
|
+
TOTP: "TOTP",
|
|
100
|
+
};
|
|
101
|
+
exports.OAuthGrantType = {
|
|
102
|
+
CODE: "CODE",
|
|
103
|
+
IMPLICIT: "IMPLICIT",
|
|
104
|
+
};
|
|
105
|
+
exports.OAuthScopesElement = {
|
|
106
|
+
AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
|
|
107
|
+
EMAIL: "EMAIL",
|
|
108
|
+
OPENID: "OPENID",
|
|
109
|
+
PHONE: "PHONE",
|
|
110
|
+
PROFILE: "PROFILE",
|
|
111
|
+
};
|
|
112
|
+
exports.RequiredSignUpAttributesElement = {
|
|
113
|
+
ADDRESS: "ADDRESS",
|
|
114
|
+
BIRTHDATE: "BIRTHDATE",
|
|
115
|
+
EMAIL: "EMAIL",
|
|
116
|
+
FAMILY_NAME: "FAMILY_NAME",
|
|
117
|
+
GENDER: "GENDER",
|
|
118
|
+
GIVEN_NAME: "GIVEN_NAME",
|
|
119
|
+
LOCALE: "LOCALE",
|
|
120
|
+
MIDDLE_NAME: "MIDDLE_NAME",
|
|
121
|
+
NAME: "NAME",
|
|
122
|
+
NICKNAME: "NICKNAME",
|
|
123
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
124
|
+
PICTURE: "PICTURE",
|
|
125
|
+
PREFERRED_USERNAME: "PREFERRED_USERNAME",
|
|
126
|
+
PROFILE: "PROFILE",
|
|
127
|
+
UPDATED_AT: "UPDATED_AT",
|
|
128
|
+
WEBSITE: "WEBSITE",
|
|
129
|
+
ZONE_INFO: "ZONE_INFO",
|
|
130
|
+
};
|
|
131
|
+
exports.SignInMethod = {
|
|
132
|
+
EMAIL: "EMAIL",
|
|
133
|
+
EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
|
|
134
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
135
|
+
USERNAME: "USERNAME",
|
|
136
|
+
};
|
|
137
|
+
exports.AuthenticatedElement = {
|
|
138
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
139
|
+
DELETE: "DELETE",
|
|
140
|
+
READ: "READ",
|
|
141
|
+
};
|
|
142
|
+
exports.UnAuthenticatedElement = {
|
|
143
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
144
|
+
DELETE: "DELETE",
|
|
145
|
+
READ: "READ",
|
|
146
|
+
};
|
|
147
|
+
exports.ServiceName = {
|
|
148
|
+
S3: "S3",
|
|
149
|
+
};
|
|
150
|
+
exports.Status = {
|
|
151
|
+
LATEST: "LATEST",
|
|
152
|
+
STALE: "STALE",
|
|
153
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AmplifyBackendServiceException as __BaseException } from "./AmplifyBackendServiceException";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(AdditionalConstraintsElement || (AdditionalConstraintsElement = {}));
|
|
2
|
+
export const AdditionalConstraintsElement = {
|
|
3
|
+
REQUIRE_DIGIT: "REQUIRE_DIGIT",
|
|
4
|
+
REQUIRE_LOWERCASE: "REQUIRE_LOWERCASE",
|
|
5
|
+
REQUIRE_SYMBOL: "REQUIRE_SYMBOL",
|
|
6
|
+
REQUIRE_UPPERCASE: "REQUIRE_UPPERCASE",
|
|
7
|
+
};
|
|
9
8
|
export class BadRequestException extends __BaseException {
|
|
10
9
|
constructor(opts) {
|
|
11
10
|
super({
|
|
@@ -60,103 +59,88 @@ export class TooManyRequestsException extends __BaseException {
|
|
|
60
59
|
this.Message = opts.Message;
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
export
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
export
|
|
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
|
-
export var UnAuthenticatedElement;
|
|
149
|
-
(function (UnAuthenticatedElement) {
|
|
150
|
-
UnAuthenticatedElement["CREATE_AND_UPDATE"] = "CREATE_AND_UPDATE";
|
|
151
|
-
UnAuthenticatedElement["DELETE"] = "DELETE";
|
|
152
|
-
UnAuthenticatedElement["READ"] = "READ";
|
|
153
|
-
})(UnAuthenticatedElement || (UnAuthenticatedElement = {}));
|
|
154
|
-
export var ServiceName;
|
|
155
|
-
(function (ServiceName) {
|
|
156
|
-
ServiceName["S3"] = "S3";
|
|
157
|
-
})(ServiceName || (ServiceName = {}));
|
|
158
|
-
export var Status;
|
|
159
|
-
(function (Status) {
|
|
160
|
-
Status["LATEST"] = "LATEST";
|
|
161
|
-
Status["STALE"] = "STALE";
|
|
162
|
-
})(Status || (Status = {}));
|
|
62
|
+
export const Mode = {
|
|
63
|
+
AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS",
|
|
64
|
+
API_KEY: "API_KEY",
|
|
65
|
+
AWS_IAM: "AWS_IAM",
|
|
66
|
+
OPENID_CONNECT: "OPENID_CONNECT",
|
|
67
|
+
};
|
|
68
|
+
export const ResolutionStrategy = {
|
|
69
|
+
AUTOMERGE: "AUTOMERGE",
|
|
70
|
+
LAMBDA: "LAMBDA",
|
|
71
|
+
NONE: "NONE",
|
|
72
|
+
OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY",
|
|
73
|
+
};
|
|
74
|
+
export const AuthResources = {
|
|
75
|
+
IDENTITY_POOL_AND_USER_POOL: "IDENTITY_POOL_AND_USER_POOL",
|
|
76
|
+
USER_POOL_ONLY: "USER_POOL_ONLY",
|
|
77
|
+
};
|
|
78
|
+
export const Service = {
|
|
79
|
+
COGNITO: "COGNITO",
|
|
80
|
+
};
|
|
81
|
+
export const DeliveryMethod = {
|
|
82
|
+
EMAIL: "EMAIL",
|
|
83
|
+
SMS: "SMS",
|
|
84
|
+
};
|
|
85
|
+
export const MFAMode = {
|
|
86
|
+
OFF: "OFF",
|
|
87
|
+
ON: "ON",
|
|
88
|
+
OPTIONAL: "OPTIONAL",
|
|
89
|
+
};
|
|
90
|
+
export const MfaTypesElement = {
|
|
91
|
+
SMS: "SMS",
|
|
92
|
+
TOTP: "TOTP",
|
|
93
|
+
};
|
|
94
|
+
export const OAuthGrantType = {
|
|
95
|
+
CODE: "CODE",
|
|
96
|
+
IMPLICIT: "IMPLICIT",
|
|
97
|
+
};
|
|
98
|
+
export const OAuthScopesElement = {
|
|
99
|
+
AWS_COGNITO_SIGNIN_USER_ADMIN: "AWS_COGNITO_SIGNIN_USER_ADMIN",
|
|
100
|
+
EMAIL: "EMAIL",
|
|
101
|
+
OPENID: "OPENID",
|
|
102
|
+
PHONE: "PHONE",
|
|
103
|
+
PROFILE: "PROFILE",
|
|
104
|
+
};
|
|
105
|
+
export const RequiredSignUpAttributesElement = {
|
|
106
|
+
ADDRESS: "ADDRESS",
|
|
107
|
+
BIRTHDATE: "BIRTHDATE",
|
|
108
|
+
EMAIL: "EMAIL",
|
|
109
|
+
FAMILY_NAME: "FAMILY_NAME",
|
|
110
|
+
GENDER: "GENDER",
|
|
111
|
+
GIVEN_NAME: "GIVEN_NAME",
|
|
112
|
+
LOCALE: "LOCALE",
|
|
113
|
+
MIDDLE_NAME: "MIDDLE_NAME",
|
|
114
|
+
NAME: "NAME",
|
|
115
|
+
NICKNAME: "NICKNAME",
|
|
116
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
117
|
+
PICTURE: "PICTURE",
|
|
118
|
+
PREFERRED_USERNAME: "PREFERRED_USERNAME",
|
|
119
|
+
PROFILE: "PROFILE",
|
|
120
|
+
UPDATED_AT: "UPDATED_AT",
|
|
121
|
+
WEBSITE: "WEBSITE",
|
|
122
|
+
ZONE_INFO: "ZONE_INFO",
|
|
123
|
+
};
|
|
124
|
+
export const SignInMethod = {
|
|
125
|
+
EMAIL: "EMAIL",
|
|
126
|
+
EMAIL_AND_PHONE_NUMBER: "EMAIL_AND_PHONE_NUMBER",
|
|
127
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
128
|
+
USERNAME: "USERNAME",
|
|
129
|
+
};
|
|
130
|
+
export const AuthenticatedElement = {
|
|
131
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
132
|
+
DELETE: "DELETE",
|
|
133
|
+
READ: "READ",
|
|
134
|
+
};
|
|
135
|
+
export const UnAuthenticatedElement = {
|
|
136
|
+
CREATE_AND_UPDATE: "CREATE_AND_UPDATE",
|
|
137
|
+
DELETE: "DELETE",
|
|
138
|
+
READ: "READ",
|
|
139
|
+
};
|
|
140
|
+
export const ServiceName = {
|
|
141
|
+
S3: "S3",
|
|
142
|
+
};
|
|
143
|
+
export const Status = {
|
|
144
|
+
LATEST: "LATEST",
|
|
145
|
+
STALE: "STALE",
|
|
146
|
+
};
|
|
@@ -26,7 +26,7 @@ export interface CloneBackendCommandOutput extends CloneBackendResponse, __Metad
|
|
|
26
26
|
* import { AmplifyBackendClient, CloneBackendCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
|
|
27
27
|
* // const { AmplifyBackendClient, CloneBackendCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
|
|
28
28
|
* const client = new AmplifyBackendClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CloneBackendRequest
|
|
30
30
|
* AppId: "STRING_VALUE", // required
|
|
31
31
|
* BackendEnvironmentName: "STRING_VALUE", // required
|
|
32
32
|
* TargetEnvironmentName: "STRING_VALUE", // required
|
|
@@ -26,14 +26,14 @@ export interface CreateBackendAPICommandOutput extends CreateBackendAPIResponse,
|
|
|
26
26
|
* import { AmplifyBackendClient, CreateBackendAPICommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
|
|
27
27
|
* // const { AmplifyBackendClient, CreateBackendAPICommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
|
|
28
28
|
* const client = new AmplifyBackendClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CreateBackendAPIRequest
|
|
30
30
|
* AppId: "STRING_VALUE", // required
|
|
31
31
|
* BackendEnvironmentName: "STRING_VALUE", // required
|
|
32
|
-
* ResourceConfig: {
|
|
33
|
-
* AdditionalAuthTypes: [
|
|
34
|
-
* {
|
|
32
|
+
* ResourceConfig: { // BackendAPIResourceConfig
|
|
33
|
+
* AdditionalAuthTypes: [ // ListOfBackendAPIAuthType
|
|
34
|
+
* { // BackendAPIAuthType
|
|
35
35
|
* Mode: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT",
|
|
36
|
-
* Settings: {
|
|
36
|
+
* Settings: { // BackendAPIAppSyncAuthSettings
|
|
37
37
|
* CognitoUserPoolId: "STRING_VALUE",
|
|
38
38
|
* Description: "STRING_VALUE",
|
|
39
39
|
* ExpirationTime: Number("double"),
|
|
@@ -46,7 +46,7 @@ export interface CreateBackendAPICommandOutput extends CreateBackendAPIResponse,
|
|
|
46
46
|
* },
|
|
47
47
|
* ],
|
|
48
48
|
* ApiName: "STRING_VALUE",
|
|
49
|
-
* ConflictResolution: {
|
|
49
|
+
* ConflictResolution: { // BackendAPIConflictResolution
|
|
50
50
|
* ResolutionStrategy: "OPTIMISTIC_CONCURRENCY" || "LAMBDA" || "AUTOMERGE" || "NONE",
|
|
51
51
|
* },
|
|
52
52
|
* DefaultAuthType: {
|
|
@@ -26,50 +26,50 @@ export interface CreateBackendAuthCommandOutput extends CreateBackendAuthRespons
|
|
|
26
26
|
* import { AmplifyBackendClient, CreateBackendAuthCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
|
|
27
27
|
* // const { AmplifyBackendClient, CreateBackendAuthCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
|
|
28
28
|
* const client = new AmplifyBackendClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CreateBackendAuthRequest
|
|
30
30
|
* AppId: "STRING_VALUE", // required
|
|
31
31
|
* BackendEnvironmentName: "STRING_VALUE", // required
|
|
32
|
-
* ResourceConfig: {
|
|
32
|
+
* ResourceConfig: { // CreateBackendAuthResourceConfig
|
|
33
33
|
* AuthResources: "USER_POOL_ONLY" || "IDENTITY_POOL_AND_USER_POOL", // required
|
|
34
|
-
* IdentityPoolConfigs: {
|
|
34
|
+
* IdentityPoolConfigs: { // CreateBackendAuthIdentityPoolConfig
|
|
35
35
|
* IdentityPoolName: "STRING_VALUE", // required
|
|
36
36
|
* UnauthenticatedLogin: true || false, // required
|
|
37
37
|
* },
|
|
38
38
|
* Service: "COGNITO", // required
|
|
39
|
-
* UserPoolConfigs: {
|
|
40
|
-
* ForgotPassword: {
|
|
39
|
+
* UserPoolConfigs: { // CreateBackendAuthUserPoolConfig
|
|
40
|
+
* ForgotPassword: { // CreateBackendAuthForgotPasswordConfig
|
|
41
41
|
* DeliveryMethod: "EMAIL" || "SMS", // required
|
|
42
|
-
* EmailSettings: {
|
|
42
|
+
* EmailSettings: { // EmailSettings
|
|
43
43
|
* EmailMessage: "STRING_VALUE",
|
|
44
44
|
* EmailSubject: "STRING_VALUE",
|
|
45
45
|
* },
|
|
46
|
-
* SmsSettings: {
|
|
46
|
+
* SmsSettings: { // SmsSettings
|
|
47
47
|
* SmsMessage: "STRING_VALUE",
|
|
48
48
|
* },
|
|
49
49
|
* },
|
|
50
|
-
* Mfa: {
|
|
50
|
+
* Mfa: { // CreateBackendAuthMFAConfig
|
|
51
51
|
* MFAMode: "ON" || "OFF" || "OPTIONAL", // required
|
|
52
|
-
* Settings: {
|
|
53
|
-
* MfaTypes: [
|
|
52
|
+
* Settings: { // Settings
|
|
53
|
+
* MfaTypes: [ // ListOfMfaTypesElement
|
|
54
54
|
* "SMS" || "TOTP",
|
|
55
55
|
* ],
|
|
56
56
|
* SmsMessage: "STRING_VALUE",
|
|
57
57
|
* },
|
|
58
58
|
* },
|
|
59
|
-
* OAuth: {
|
|
59
|
+
* OAuth: { // CreateBackendAuthOAuthConfig
|
|
60
60
|
* DomainPrefix: "STRING_VALUE",
|
|
61
61
|
* OAuthGrantType: "CODE" || "IMPLICIT", // required
|
|
62
|
-
* OAuthScopes: [ // required
|
|
62
|
+
* OAuthScopes: [ // ListOfOAuthScopesElement // required
|
|
63
63
|
* "PHONE" || "EMAIL" || "OPENID" || "PROFILE" || "AWS_COGNITO_SIGNIN_USER_ADMIN",
|
|
64
64
|
* ],
|
|
65
|
-
* RedirectSignInURIs: [ // required
|
|
65
|
+
* RedirectSignInURIs: [ // ListOf__string // required
|
|
66
66
|
* "STRING_VALUE",
|
|
67
67
|
* ],
|
|
68
68
|
* RedirectSignOutURIs: [ // required
|
|
69
69
|
* "STRING_VALUE",
|
|
70
70
|
* ],
|
|
71
|
-
* SocialProviderSettings: {
|
|
72
|
-
* Facebook: {
|
|
71
|
+
* SocialProviderSettings: { // SocialProviderSettings
|
|
72
|
+
* Facebook: { // BackendAuthSocialProviderConfig
|
|
73
73
|
* ClientId: "STRING_VALUE",
|
|
74
74
|
* ClientSecret: "STRING_VALUE",
|
|
75
75
|
* },
|
|
@@ -81,7 +81,7 @@ export interface CreateBackendAuthCommandOutput extends CreateBackendAuthRespons
|
|
|
81
81
|
* ClientId: "STRING_VALUE",
|
|
82
82
|
* ClientSecret: "STRING_VALUE",
|
|
83
83
|
* },
|
|
84
|
-
* SignInWithApple: {
|
|
84
|
+
* SignInWithApple: { // BackendAuthAppleProviderConfig
|
|
85
85
|
* ClientId: "STRING_VALUE",
|
|
86
86
|
* KeyId: "STRING_VALUE",
|
|
87
87
|
* PrivateKey: "STRING_VALUE",
|
|
@@ -89,18 +89,18 @@ export interface CreateBackendAuthCommandOutput extends CreateBackendAuthRespons
|
|
|
89
89
|
* },
|
|
90
90
|
* },
|
|
91
91
|
* },
|
|
92
|
-
* PasswordPolicy: {
|
|
93
|
-
* AdditionalConstraints: [
|
|
92
|
+
* PasswordPolicy: { // CreateBackendAuthPasswordPolicyConfig
|
|
93
|
+
* AdditionalConstraints: [ // ListOfAdditionalConstraintsElement
|
|
94
94
|
* "REQUIRE_DIGIT" || "REQUIRE_LOWERCASE" || "REQUIRE_SYMBOL" || "REQUIRE_UPPERCASE",
|
|
95
95
|
* ],
|
|
96
96
|
* MinimumLength: Number("double"), // required
|
|
97
97
|
* },
|
|
98
|
-
* RequiredSignUpAttributes: [ // required
|
|
98
|
+
* RequiredSignUpAttributes: [ // ListOfRequiredSignUpAttributesElement // required
|
|
99
99
|
* "ADDRESS" || "BIRTHDATE" || "EMAIL" || "FAMILY_NAME" || "GENDER" || "GIVEN_NAME" || "LOCALE" || "MIDDLE_NAME" || "NAME" || "NICKNAME" || "PHONE_NUMBER" || "PICTURE" || "PREFERRED_USERNAME" || "PROFILE" || "UPDATED_AT" || "WEBSITE" || "ZONE_INFO",
|
|
100
100
|
* ],
|
|
101
101
|
* SignInMethod: "EMAIL" || "EMAIL_AND_PHONE_NUMBER" || "PHONE_NUMBER" || "USERNAME", // required
|
|
102
102
|
* UserPoolName: "STRING_VALUE", // required
|
|
103
|
-
* VerificationMessage: {
|
|
103
|
+
* VerificationMessage: { // CreateBackendAuthVerificationMessageConfig
|
|
104
104
|
* DeliveryMethod: "EMAIL" || "SMS", // required
|
|
105
105
|
* EmailSettings: {
|
|
106
106
|
* EmailMessage: "STRING_VALUE",
|
|
@@ -26,7 +26,7 @@ export interface CreateBackendCommandOutput extends CreateBackendResponse, __Met
|
|
|
26
26
|
* import { AmplifyBackendClient, CreateBackendCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
|
|
27
27
|
* // const { AmplifyBackendClient, CreateBackendCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
|
|
28
28
|
* const client = new AmplifyBackendClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CreateBackendRequest
|
|
30
30
|
* AppId: "STRING_VALUE", // required
|
|
31
31
|
* AppName: "STRING_VALUE", // required
|
|
32
32
|
* BackendEnvironmentName: "STRING_VALUE", // required
|
|
@@ -26,7 +26,7 @@ export interface CreateBackendConfigCommandOutput extends CreateBackendConfigRes
|
|
|
26
26
|
* import { AmplifyBackendClient, CreateBackendConfigCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
|
|
27
27
|
* // const { AmplifyBackendClient, CreateBackendConfigCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
|
|
28
28
|
* const client = new AmplifyBackendClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CreateBackendConfigRequest
|
|
30
30
|
* AppId: "STRING_VALUE", // required
|
|
31
31
|
* BackendManagerAppId: "STRING_VALUE",
|
|
32
32
|
* };
|
|
@@ -26,16 +26,16 @@ export interface CreateBackendStorageCommandOutput extends CreateBackendStorageR
|
|
|
26
26
|
* import { AmplifyBackendClient, CreateBackendStorageCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
|
|
27
27
|
* // const { AmplifyBackendClient, CreateBackendStorageCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
|
|
28
28
|
* const client = new AmplifyBackendClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CreateBackendStorageRequest
|
|
30
30
|
* AppId: "STRING_VALUE", // required
|
|
31
31
|
* BackendEnvironmentName: "STRING_VALUE", // required
|
|
32
|
-
* ResourceConfig: {
|
|
32
|
+
* ResourceConfig: { // CreateBackendStorageResourceConfig
|
|
33
33
|
* BucketName: "STRING_VALUE",
|
|
34
|
-
* Permissions: {
|
|
35
|
-
* Authenticated: [ // required
|
|
34
|
+
* Permissions: { // BackendStoragePermissions
|
|
35
|
+
* Authenticated: [ // ListOfAuthenticatedElement // required
|
|
36
36
|
* "READ" || "CREATE_AND_UPDATE" || "DELETE",
|
|
37
37
|
* ],
|
|
38
|
-
* UnAuthenticated: [
|
|
38
|
+
* UnAuthenticated: [ // ListOfUnAuthenticatedElement
|
|
39
39
|
* "READ" || "CREATE_AND_UPDATE" || "DELETE",
|
|
40
40
|
* ],
|
|
41
41
|
* },
|
|
@@ -26,7 +26,7 @@ export interface CreateTokenCommandOutput extends CreateTokenResponse, __Metadat
|
|
|
26
26
|
* import { AmplifyBackendClient, CreateTokenCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
|
|
27
27
|
* // const { AmplifyBackendClient, CreateTokenCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
|
|
28
28
|
* const client = new AmplifyBackendClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CreateTokenRequest
|
|
30
30
|
* AppId: "STRING_VALUE", // required
|
|
31
31
|
* };
|
|
32
32
|
* const command = new CreateTokenCommand(input);
|