@aws-sdk/client-organizations 3.121.0 → 3.130.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +171 -241
- package/dist-es/protocols/Aws_json1_1.js +107 -177
- package/package.json +26 -26
|
@@ -5114,20 +5114,19 @@ var deserializeAws_json1_1UnsupportedAPIEndpointExceptionResponse = function (pa
|
|
|
5114
5114
|
});
|
|
5115
5115
|
}); };
|
|
5116
5116
|
var serializeAws_json1_1AcceptHandshakeRequest = function (input, context) {
|
|
5117
|
-
return __assign({}, (input.HandshakeId
|
|
5117
|
+
return __assign({}, (input.HandshakeId != null && { HandshakeId: input.HandshakeId }));
|
|
5118
5118
|
};
|
|
5119
5119
|
var serializeAws_json1_1AttachPolicyRequest = function (input, context) {
|
|
5120
|
-
return __assign(__assign({}, (input.PolicyId
|
|
5120
|
+
return __assign(__assign({}, (input.PolicyId != null && { PolicyId: input.PolicyId })), (input.TargetId != null && { TargetId: input.TargetId }));
|
|
5121
5121
|
};
|
|
5122
5122
|
var serializeAws_json1_1CancelHandshakeRequest = function (input, context) {
|
|
5123
|
-
return __assign({}, (input.HandshakeId
|
|
5123
|
+
return __assign({}, (input.HandshakeId != null && { HandshakeId: input.HandshakeId }));
|
|
5124
5124
|
};
|
|
5125
5125
|
var serializeAws_json1_1CloseAccountRequest = function (input, context) {
|
|
5126
|
-
return __assign({}, (input.AccountId
|
|
5126
|
+
return __assign({}, (input.AccountId != null && { AccountId: input.AccountId }));
|
|
5127
5127
|
};
|
|
5128
5128
|
var serializeAws_json1_1CreateAccountRequest = function (input, context) {
|
|
5129
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AccountName
|
|
5130
|
-
input.IamUserAccessToBilling !== null && { IamUserAccessToBilling: input.IamUserAccessToBilling })), (input.RoleName !== undefined && input.RoleName !== null && { RoleName: input.RoleName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5129
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AccountName != null && { AccountName: input.AccountName })), (input.Email != null && { Email: input.Email })), (input.IamUserAccessToBilling != null && { IamUserAccessToBilling: input.IamUserAccessToBilling })), (input.RoleName != null && { RoleName: input.RoleName })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5131
5130
|
};
|
|
5132
5131
|
var serializeAws_json1_1CreateAccountStates = function (input, context) {
|
|
5133
5132
|
return input
|
|
@@ -5140,149 +5139,133 @@ var serializeAws_json1_1CreateAccountStates = function (input, context) {
|
|
|
5140
5139
|
});
|
|
5141
5140
|
};
|
|
5142
5141
|
var serializeAws_json1_1CreateGovCloudAccountRequest = function (input, context) {
|
|
5143
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AccountName
|
|
5144
|
-
input.IamUserAccessToBilling !== null && { IamUserAccessToBilling: input.IamUserAccessToBilling })), (input.RoleName !== undefined && input.RoleName !== null && { RoleName: input.RoleName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5142
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AccountName != null && { AccountName: input.AccountName })), (input.Email != null && { Email: input.Email })), (input.IamUserAccessToBilling != null && { IamUserAccessToBilling: input.IamUserAccessToBilling })), (input.RoleName != null && { RoleName: input.RoleName })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5145
5143
|
};
|
|
5146
5144
|
var serializeAws_json1_1CreateOrganizationalUnitRequest = function (input, context) {
|
|
5147
|
-
return __assign(__assign(__assign({}, (input.Name
|
|
5145
|
+
return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ParentId != null && { ParentId: input.ParentId })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5148
5146
|
};
|
|
5149
5147
|
var serializeAws_json1_1CreateOrganizationRequest = function (input, context) {
|
|
5150
|
-
return __assign({}, (input.FeatureSet
|
|
5148
|
+
return __assign({}, (input.FeatureSet != null && { FeatureSet: input.FeatureSet }));
|
|
5151
5149
|
};
|
|
5152
5150
|
var serializeAws_json1_1CreatePolicyRequest = function (input, context) {
|
|
5153
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Content
|
|
5151
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.Type != null && { Type: input.Type }));
|
|
5154
5152
|
};
|
|
5155
5153
|
var serializeAws_json1_1DeclineHandshakeRequest = function (input, context) {
|
|
5156
|
-
return __assign({}, (input.HandshakeId
|
|
5154
|
+
return __assign({}, (input.HandshakeId != null && { HandshakeId: input.HandshakeId }));
|
|
5157
5155
|
};
|
|
5158
5156
|
var serializeAws_json1_1DeleteOrganizationalUnitRequest = function (input, context) {
|
|
5159
|
-
return __assign({}, (input.OrganizationalUnitId
|
|
5160
|
-
input.OrganizationalUnitId !== null && { OrganizationalUnitId: input.OrganizationalUnitId }));
|
|
5157
|
+
return __assign({}, (input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }));
|
|
5161
5158
|
};
|
|
5162
5159
|
var serializeAws_json1_1DeletePolicyRequest = function (input, context) {
|
|
5163
|
-
return __assign({}, (input.PolicyId
|
|
5160
|
+
return __assign({}, (input.PolicyId != null && { PolicyId: input.PolicyId }));
|
|
5164
5161
|
};
|
|
5165
5162
|
var serializeAws_json1_1DeregisterDelegatedAdministratorRequest = function (input, context) {
|
|
5166
|
-
return __assign(__assign({}, (input.AccountId
|
|
5167
|
-
input.ServicePrincipal !== null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5163
|
+
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5168
5164
|
};
|
|
5169
5165
|
var serializeAws_json1_1DescribeAccountRequest = function (input, context) {
|
|
5170
|
-
return __assign({}, (input.AccountId
|
|
5166
|
+
return __assign({}, (input.AccountId != null && { AccountId: input.AccountId }));
|
|
5171
5167
|
};
|
|
5172
5168
|
var serializeAws_json1_1DescribeCreateAccountStatusRequest = function (input, context) {
|
|
5173
|
-
return __assign({}, (input.CreateAccountRequestId
|
|
5174
|
-
input.CreateAccountRequestId !== null && { CreateAccountRequestId: input.CreateAccountRequestId }));
|
|
5169
|
+
return __assign({}, (input.CreateAccountRequestId != null && { CreateAccountRequestId: input.CreateAccountRequestId }));
|
|
5175
5170
|
};
|
|
5176
5171
|
var serializeAws_json1_1DescribeEffectivePolicyRequest = function (input, context) {
|
|
5177
|
-
return __assign(__assign({}, (input.PolicyType
|
|
5172
|
+
return __assign(__assign({}, (input.PolicyType != null && { PolicyType: input.PolicyType })), (input.TargetId != null && { TargetId: input.TargetId }));
|
|
5178
5173
|
};
|
|
5179
5174
|
var serializeAws_json1_1DescribeHandshakeRequest = function (input, context) {
|
|
5180
|
-
return __assign({}, (input.HandshakeId
|
|
5175
|
+
return __assign({}, (input.HandshakeId != null && { HandshakeId: input.HandshakeId }));
|
|
5181
5176
|
};
|
|
5182
5177
|
var serializeAws_json1_1DescribeOrganizationalUnitRequest = function (input, context) {
|
|
5183
|
-
return __assign({}, (input.OrganizationalUnitId
|
|
5184
|
-
input.OrganizationalUnitId !== null && { OrganizationalUnitId: input.OrganizationalUnitId }));
|
|
5178
|
+
return __assign({}, (input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }));
|
|
5185
5179
|
};
|
|
5186
5180
|
var serializeAws_json1_1DescribePolicyRequest = function (input, context) {
|
|
5187
|
-
return __assign({}, (input.PolicyId
|
|
5181
|
+
return __assign({}, (input.PolicyId != null && { PolicyId: input.PolicyId }));
|
|
5188
5182
|
};
|
|
5189
5183
|
var serializeAws_json1_1DetachPolicyRequest = function (input, context) {
|
|
5190
|
-
return __assign(__assign({}, (input.PolicyId
|
|
5184
|
+
return __assign(__assign({}, (input.PolicyId != null && { PolicyId: input.PolicyId })), (input.TargetId != null && { TargetId: input.TargetId }));
|
|
5191
5185
|
};
|
|
5192
5186
|
var serializeAws_json1_1DisableAWSServiceAccessRequest = function (input, context) {
|
|
5193
|
-
return __assign({}, (input.ServicePrincipal
|
|
5194
|
-
input.ServicePrincipal !== null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5187
|
+
return __assign({}, (input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5195
5188
|
};
|
|
5196
5189
|
var serializeAws_json1_1DisablePolicyTypeRequest = function (input, context) {
|
|
5197
|
-
return __assign(__assign({}, (input.PolicyType
|
|
5190
|
+
return __assign(__assign({}, (input.PolicyType != null && { PolicyType: input.PolicyType })), (input.RootId != null && { RootId: input.RootId }));
|
|
5198
5191
|
};
|
|
5199
5192
|
var serializeAws_json1_1EnableAllFeaturesRequest = function (input, context) {
|
|
5200
5193
|
return {};
|
|
5201
5194
|
};
|
|
5202
5195
|
var serializeAws_json1_1EnableAWSServiceAccessRequest = function (input, context) {
|
|
5203
|
-
return __assign({}, (input.ServicePrincipal
|
|
5204
|
-
input.ServicePrincipal !== null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5196
|
+
return __assign({}, (input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5205
5197
|
};
|
|
5206
5198
|
var serializeAws_json1_1EnablePolicyTypeRequest = function (input, context) {
|
|
5207
|
-
return __assign(__assign({}, (input.PolicyType
|
|
5199
|
+
return __assign(__assign({}, (input.PolicyType != null && { PolicyType: input.PolicyType })), (input.RootId != null && { RootId: input.RootId }));
|
|
5208
5200
|
};
|
|
5209
5201
|
var serializeAws_json1_1HandshakeFilter = function (input, context) {
|
|
5210
|
-
return __assign(__assign({}, (input.ActionType
|
|
5211
|
-
input.ParentHandshakeId !== null && { ParentHandshakeId: input.ParentHandshakeId }));
|
|
5202
|
+
return __assign(__assign({}, (input.ActionType != null && { ActionType: input.ActionType })), (input.ParentHandshakeId != null && { ParentHandshakeId: input.ParentHandshakeId }));
|
|
5212
5203
|
};
|
|
5213
5204
|
var serializeAws_json1_1HandshakeParty = function (input, context) {
|
|
5214
|
-
return __assign(__assign({}, (input.Id
|
|
5205
|
+
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Type != null && { Type: input.Type }));
|
|
5215
5206
|
};
|
|
5216
5207
|
var serializeAws_json1_1InviteAccountToOrganizationRequest = function (input, context) {
|
|
5217
|
-
return __assign(__assign(__assign({}, (input.Notes
|
|
5218
|
-
input.Target !== null && { Target: serializeAws_json1_1HandshakeParty(input.Target, context) }));
|
|
5208
|
+
return __assign(__assign(__assign({}, (input.Notes != null && { Notes: input.Notes })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.Target != null && { Target: serializeAws_json1_1HandshakeParty(input.Target, context) }));
|
|
5219
5209
|
};
|
|
5220
5210
|
var serializeAws_json1_1ListAccountsForParentRequest = function (input, context) {
|
|
5221
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5211
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ParentId != null && { ParentId: input.ParentId }));
|
|
5222
5212
|
};
|
|
5223
5213
|
var serializeAws_json1_1ListAccountsRequest = function (input, context) {
|
|
5224
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5214
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5225
5215
|
};
|
|
5226
5216
|
var serializeAws_json1_1ListAWSServiceAccessForOrganizationRequest = function (input, context) {
|
|
5227
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5217
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5228
5218
|
};
|
|
5229
5219
|
var serializeAws_json1_1ListChildrenRequest = function (input, context) {
|
|
5230
|
-
return __assign(__assign(__assign(__assign({}, (input.ChildType
|
|
5220
|
+
return __assign(__assign(__assign(__assign({}, (input.ChildType != null && { ChildType: input.ChildType })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ParentId != null && { ParentId: input.ParentId }));
|
|
5231
5221
|
};
|
|
5232
5222
|
var serializeAws_json1_1ListCreateAccountStatusRequest = function (input, context) {
|
|
5233
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5234
|
-
input.States !== null && { States: serializeAws_json1_1CreateAccountStates(input.States, context) }));
|
|
5223
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.States != null && { States: serializeAws_json1_1CreateAccountStates(input.States, context) }));
|
|
5235
5224
|
};
|
|
5236
5225
|
var serializeAws_json1_1ListDelegatedAdministratorsRequest = function (input, context) {
|
|
5237
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5238
|
-
input.ServicePrincipal !== null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5226
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5239
5227
|
};
|
|
5240
5228
|
var serializeAws_json1_1ListDelegatedServicesForAccountRequest = function (input, context) {
|
|
5241
|
-
return __assign(__assign(__assign({}, (input.AccountId
|
|
5229
|
+
return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5242
5230
|
};
|
|
5243
5231
|
var serializeAws_json1_1ListHandshakesForAccountRequest = function (input, context) {
|
|
5244
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5245
|
-
input.Filter !== null && { Filter: serializeAws_json1_1HandshakeFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5232
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1HandshakeFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5246
5233
|
};
|
|
5247
5234
|
var serializeAws_json1_1ListHandshakesForOrganizationRequest = function (input, context) {
|
|
5248
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5249
|
-
input.Filter !== null && { Filter: serializeAws_json1_1HandshakeFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5235
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1HandshakeFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5250
5236
|
};
|
|
5251
5237
|
var serializeAws_json1_1ListOrganizationalUnitsForParentRequest = function (input, context) {
|
|
5252
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5238
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ParentId != null && { ParentId: input.ParentId }));
|
|
5253
5239
|
};
|
|
5254
5240
|
var serializeAws_json1_1ListParentsRequest = function (input, context) {
|
|
5255
|
-
return __assign(__assign(__assign({}, (input.ChildId
|
|
5241
|
+
return __assign(__assign(__assign({}, (input.ChildId != null && { ChildId: input.ChildId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5256
5242
|
};
|
|
5257
5243
|
var serializeAws_json1_1ListPoliciesForTargetRequest = function (input, context) {
|
|
5258
|
-
return __assign(__assign(__assign(__assign({}, (input.Filter
|
|
5244
|
+
return __assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: input.Filter })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TargetId != null && { TargetId: input.TargetId }));
|
|
5259
5245
|
};
|
|
5260
5246
|
var serializeAws_json1_1ListPoliciesRequest = function (input, context) {
|
|
5261
|
-
return __assign(__assign(__assign({}, (input.Filter
|
|
5247
|
+
return __assign(__assign(__assign({}, (input.Filter != null && { Filter: input.Filter })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5262
5248
|
};
|
|
5263
5249
|
var serializeAws_json1_1ListRootsRequest = function (input, context) {
|
|
5264
|
-
return __assign(__assign({}, (input.MaxResults
|
|
5250
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5265
5251
|
};
|
|
5266
5252
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
5267
|
-
return __assign(__assign({}, (input.NextToken
|
|
5253
|
+
return __assign(__assign({}, (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
|
|
5268
5254
|
};
|
|
5269
5255
|
var serializeAws_json1_1ListTargetsForPolicyRequest = function (input, context) {
|
|
5270
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
5256
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyId != null && { PolicyId: input.PolicyId }));
|
|
5271
5257
|
};
|
|
5272
5258
|
var serializeAws_json1_1MoveAccountRequest = function (input, context) {
|
|
5273
|
-
return __assign(__assign(__assign({}, (input.AccountId
|
|
5274
|
-
input.DestinationParentId !== null && { DestinationParentId: input.DestinationParentId })), (input.SourceParentId !== undefined &&
|
|
5275
|
-
input.SourceParentId !== null && { SourceParentId: input.SourceParentId }));
|
|
5259
|
+
return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.DestinationParentId != null && { DestinationParentId: input.DestinationParentId })), (input.SourceParentId != null && { SourceParentId: input.SourceParentId }));
|
|
5276
5260
|
};
|
|
5277
5261
|
var serializeAws_json1_1RegisterDelegatedAdministratorRequest = function (input, context) {
|
|
5278
|
-
return __assign(__assign({}, (input.AccountId
|
|
5279
|
-
input.ServicePrincipal !== null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5262
|
+
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }));
|
|
5280
5263
|
};
|
|
5281
5264
|
var serializeAws_json1_1RemoveAccountFromOrganizationRequest = function (input, context) {
|
|
5282
|
-
return __assign({}, (input.AccountId
|
|
5265
|
+
return __assign({}, (input.AccountId != null && { AccountId: input.AccountId }));
|
|
5283
5266
|
};
|
|
5284
5267
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
5285
|
-
return __assign(__assign({}, (input.Key
|
|
5268
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
5286
5269
|
};
|
|
5287
5270
|
var serializeAws_json1_1TagKeys = function (input, context) {
|
|
5288
5271
|
return input
|
|
@@ -5295,7 +5278,7 @@ var serializeAws_json1_1TagKeys = function (input, context) {
|
|
|
5295
5278
|
});
|
|
5296
5279
|
};
|
|
5297
5280
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
5298
|
-
return __assign(__assign({}, (input.ResourceId
|
|
5281
|
+
return __assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5299
5282
|
};
|
|
5300
5283
|
var serializeAws_json1_1Tags = function (input, context) {
|
|
5301
5284
|
return input
|
|
@@ -5308,21 +5291,17 @@ var serializeAws_json1_1Tags = function (input, context) {
|
|
|
5308
5291
|
});
|
|
5309
5292
|
};
|
|
5310
5293
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
5311
|
-
return __assign(__assign({}, (input.ResourceId
|
|
5312
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
|
|
5294
|
+
return __assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
|
|
5313
5295
|
};
|
|
5314
5296
|
var serializeAws_json1_1UpdateOrganizationalUnitRequest = function (input, context) {
|
|
5315
|
-
return __assign(__assign({}, (input.Name
|
|
5316
|
-
input.OrganizationalUnitId !== null && { OrganizationalUnitId: input.OrganizationalUnitId }));
|
|
5297
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }));
|
|
5317
5298
|
};
|
|
5318
5299
|
var serializeAws_json1_1UpdatePolicyRequest = function (input, context) {
|
|
5319
|
-
return __assign(__assign(__assign(__assign({}, (input.Content
|
|
5300
|
+
return __assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.PolicyId != null && { PolicyId: input.PolicyId }));
|
|
5320
5301
|
};
|
|
5321
5302
|
var deserializeAws_json1_1AcceptHandshakeResponse = function (output, context) {
|
|
5322
5303
|
return {
|
|
5323
|
-
Handshake: output.Handshake
|
|
5324
|
-
? deserializeAws_json1_1Handshake(output.Handshake, context)
|
|
5325
|
-
: undefined,
|
|
5304
|
+
Handshake: output.Handshake != null ? deserializeAws_json1_1Handshake(output.Handshake, context) : undefined,
|
|
5326
5305
|
};
|
|
5327
5306
|
};
|
|
5328
5307
|
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
@@ -5342,7 +5321,7 @@ var deserializeAws_json1_1Account = function (output, context) {
|
|
|
5342
5321
|
Email: __expectString(output.Email),
|
|
5343
5322
|
Id: __expectString(output.Id),
|
|
5344
5323
|
JoinedMethod: __expectString(output.JoinedMethod),
|
|
5345
|
-
JoinedTimestamp: output.JoinedTimestamp
|
|
5324
|
+
JoinedTimestamp: output.JoinedTimestamp != null
|
|
5346
5325
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JoinedTimestamp)))
|
|
5347
5326
|
: undefined,
|
|
5348
5327
|
Name: __expectString(output.Name),
|
|
@@ -5397,9 +5376,7 @@ var deserializeAws_json1_1AWSOrganizationsNotInUseException = function (output,
|
|
|
5397
5376
|
};
|
|
5398
5377
|
var deserializeAws_json1_1CancelHandshakeResponse = function (output, context) {
|
|
5399
5378
|
return {
|
|
5400
|
-
Handshake: output.Handshake
|
|
5401
|
-
? deserializeAws_json1_1Handshake(output.Handshake, context)
|
|
5402
|
-
: undefined,
|
|
5379
|
+
Handshake: output.Handshake != null ? deserializeAws_json1_1Handshake(output.Handshake, context) : undefined,
|
|
5403
5380
|
};
|
|
5404
5381
|
};
|
|
5405
5382
|
var deserializeAws_json1_1Child = function (output, context) {
|
|
@@ -5442,7 +5419,7 @@ var deserializeAws_json1_1ConstraintViolationException = function (output, conte
|
|
|
5442
5419
|
};
|
|
5443
5420
|
var deserializeAws_json1_1CreateAccountResponse = function (output, context) {
|
|
5444
5421
|
return {
|
|
5445
|
-
CreateAccountStatus: output.CreateAccountStatus
|
|
5422
|
+
CreateAccountStatus: output.CreateAccountStatus != null
|
|
5446
5423
|
? deserializeAws_json1_1CreateAccountStatus(output.CreateAccountStatus, context)
|
|
5447
5424
|
: undefined,
|
|
5448
5425
|
};
|
|
@@ -5451,13 +5428,13 @@ var deserializeAws_json1_1CreateAccountStatus = function (output, context) {
|
|
|
5451
5428
|
return {
|
|
5452
5429
|
AccountId: __expectString(output.AccountId),
|
|
5453
5430
|
AccountName: __expectString(output.AccountName),
|
|
5454
|
-
CompletedTimestamp: output.CompletedTimestamp
|
|
5431
|
+
CompletedTimestamp: output.CompletedTimestamp != null
|
|
5455
5432
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletedTimestamp)))
|
|
5456
5433
|
: undefined,
|
|
5457
5434
|
FailureReason: __expectString(output.FailureReason),
|
|
5458
5435
|
GovCloudAccountId: __expectString(output.GovCloudAccountId),
|
|
5459
5436
|
Id: __expectString(output.Id),
|
|
5460
|
-
RequestedTimestamp: output.RequestedTimestamp
|
|
5437
|
+
RequestedTimestamp: output.RequestedTimestamp != null
|
|
5461
5438
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RequestedTimestamp)))
|
|
5462
5439
|
: undefined,
|
|
5463
5440
|
State: __expectString(output.State),
|
|
@@ -5481,49 +5458,43 @@ var deserializeAws_json1_1CreateAccountStatusNotFoundException = function (outpu
|
|
|
5481
5458
|
};
|
|
5482
5459
|
var deserializeAws_json1_1CreateGovCloudAccountResponse = function (output, context) {
|
|
5483
5460
|
return {
|
|
5484
|
-
CreateAccountStatus: output.CreateAccountStatus
|
|
5461
|
+
CreateAccountStatus: output.CreateAccountStatus != null
|
|
5485
5462
|
? deserializeAws_json1_1CreateAccountStatus(output.CreateAccountStatus, context)
|
|
5486
5463
|
: undefined,
|
|
5487
5464
|
};
|
|
5488
5465
|
};
|
|
5489
5466
|
var deserializeAws_json1_1CreateOrganizationalUnitResponse = function (output, context) {
|
|
5490
5467
|
return {
|
|
5491
|
-
OrganizationalUnit: output.OrganizationalUnit
|
|
5468
|
+
OrganizationalUnit: output.OrganizationalUnit != null
|
|
5492
5469
|
? deserializeAws_json1_1OrganizationalUnit(output.OrganizationalUnit, context)
|
|
5493
5470
|
: undefined,
|
|
5494
5471
|
};
|
|
5495
5472
|
};
|
|
5496
5473
|
var deserializeAws_json1_1CreateOrganizationResponse = function (output, context) {
|
|
5497
5474
|
return {
|
|
5498
|
-
Organization: output.Organization
|
|
5499
|
-
? deserializeAws_json1_1Organization(output.Organization, context)
|
|
5500
|
-
: undefined,
|
|
5475
|
+
Organization: output.Organization != null ? deserializeAws_json1_1Organization(output.Organization, context) : undefined,
|
|
5501
5476
|
};
|
|
5502
5477
|
};
|
|
5503
5478
|
var deserializeAws_json1_1CreatePolicyResponse = function (output, context) {
|
|
5504
5479
|
return {
|
|
5505
|
-
Policy: output.Policy
|
|
5506
|
-
? deserializeAws_json1_1Policy(output.Policy, context)
|
|
5507
|
-
: undefined,
|
|
5480
|
+
Policy: output.Policy != null ? deserializeAws_json1_1Policy(output.Policy, context) : undefined,
|
|
5508
5481
|
};
|
|
5509
5482
|
};
|
|
5510
5483
|
var deserializeAws_json1_1DeclineHandshakeResponse = function (output, context) {
|
|
5511
5484
|
return {
|
|
5512
|
-
Handshake: output.Handshake
|
|
5513
|
-
? deserializeAws_json1_1Handshake(output.Handshake, context)
|
|
5514
|
-
: undefined,
|
|
5485
|
+
Handshake: output.Handshake != null ? deserializeAws_json1_1Handshake(output.Handshake, context) : undefined,
|
|
5515
5486
|
};
|
|
5516
5487
|
};
|
|
5517
5488
|
var deserializeAws_json1_1DelegatedAdministrator = function (output, context) {
|
|
5518
5489
|
return {
|
|
5519
5490
|
Arn: __expectString(output.Arn),
|
|
5520
|
-
DelegationEnabledDate: output.DelegationEnabledDate
|
|
5491
|
+
DelegationEnabledDate: output.DelegationEnabledDate != null
|
|
5521
5492
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DelegationEnabledDate)))
|
|
5522
5493
|
: undefined,
|
|
5523
5494
|
Email: __expectString(output.Email),
|
|
5524
5495
|
Id: __expectString(output.Id),
|
|
5525
5496
|
JoinedMethod: __expectString(output.JoinedMethod),
|
|
5526
|
-
JoinedTimestamp: output.JoinedTimestamp
|
|
5497
|
+
JoinedTimestamp: output.JoinedTimestamp != null
|
|
5527
5498
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JoinedTimestamp)))
|
|
5528
5499
|
: undefined,
|
|
5529
5500
|
Name: __expectString(output.Name),
|
|
@@ -5543,7 +5514,7 @@ var deserializeAws_json1_1DelegatedAdministrators = function (output, context) {
|
|
|
5543
5514
|
};
|
|
5544
5515
|
var deserializeAws_json1_1DelegatedService = function (output, context) {
|
|
5545
5516
|
return {
|
|
5546
|
-
DelegationEnabledDate: output.DelegationEnabledDate
|
|
5517
|
+
DelegationEnabledDate: output.DelegationEnabledDate != null
|
|
5547
5518
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DelegationEnabledDate)))
|
|
5548
5519
|
: undefined,
|
|
5549
5520
|
ServicePrincipal: __expectString(output.ServicePrincipal),
|
|
@@ -5562,51 +5533,43 @@ var deserializeAws_json1_1DelegatedServices = function (output, context) {
|
|
|
5562
5533
|
};
|
|
5563
5534
|
var deserializeAws_json1_1DescribeAccountResponse = function (output, context) {
|
|
5564
5535
|
return {
|
|
5565
|
-
Account: output.Account
|
|
5566
|
-
? deserializeAws_json1_1Account(output.Account, context)
|
|
5567
|
-
: undefined,
|
|
5536
|
+
Account: output.Account != null ? deserializeAws_json1_1Account(output.Account, context) : undefined,
|
|
5568
5537
|
};
|
|
5569
5538
|
};
|
|
5570
5539
|
var deserializeAws_json1_1DescribeCreateAccountStatusResponse = function (output, context) {
|
|
5571
5540
|
return {
|
|
5572
|
-
CreateAccountStatus: output.CreateAccountStatus
|
|
5541
|
+
CreateAccountStatus: output.CreateAccountStatus != null
|
|
5573
5542
|
? deserializeAws_json1_1CreateAccountStatus(output.CreateAccountStatus, context)
|
|
5574
5543
|
: undefined,
|
|
5575
5544
|
};
|
|
5576
5545
|
};
|
|
5577
5546
|
var deserializeAws_json1_1DescribeEffectivePolicyResponse = function (output, context) {
|
|
5578
5547
|
return {
|
|
5579
|
-
EffectivePolicy: output.EffectivePolicy
|
|
5548
|
+
EffectivePolicy: output.EffectivePolicy != null
|
|
5580
5549
|
? deserializeAws_json1_1EffectivePolicy(output.EffectivePolicy, context)
|
|
5581
5550
|
: undefined,
|
|
5582
5551
|
};
|
|
5583
5552
|
};
|
|
5584
5553
|
var deserializeAws_json1_1DescribeHandshakeResponse = function (output, context) {
|
|
5585
5554
|
return {
|
|
5586
|
-
Handshake: output.Handshake
|
|
5587
|
-
? deserializeAws_json1_1Handshake(output.Handshake, context)
|
|
5588
|
-
: undefined,
|
|
5555
|
+
Handshake: output.Handshake != null ? deserializeAws_json1_1Handshake(output.Handshake, context) : undefined,
|
|
5589
5556
|
};
|
|
5590
5557
|
};
|
|
5591
5558
|
var deserializeAws_json1_1DescribeOrganizationalUnitResponse = function (output, context) {
|
|
5592
5559
|
return {
|
|
5593
|
-
OrganizationalUnit: output.OrganizationalUnit
|
|
5560
|
+
OrganizationalUnit: output.OrganizationalUnit != null
|
|
5594
5561
|
? deserializeAws_json1_1OrganizationalUnit(output.OrganizationalUnit, context)
|
|
5595
5562
|
: undefined,
|
|
5596
5563
|
};
|
|
5597
5564
|
};
|
|
5598
5565
|
var deserializeAws_json1_1DescribeOrganizationResponse = function (output, context) {
|
|
5599
5566
|
return {
|
|
5600
|
-
Organization: output.Organization
|
|
5601
|
-
? deserializeAws_json1_1Organization(output.Organization, context)
|
|
5602
|
-
: undefined,
|
|
5567
|
+
Organization: output.Organization != null ? deserializeAws_json1_1Organization(output.Organization, context) : undefined,
|
|
5603
5568
|
};
|
|
5604
5569
|
};
|
|
5605
5570
|
var deserializeAws_json1_1DescribePolicyResponse = function (output, context) {
|
|
5606
5571
|
return {
|
|
5607
|
-
Policy: output.Policy
|
|
5608
|
-
? deserializeAws_json1_1Policy(output.Policy, context)
|
|
5609
|
-
: undefined,
|
|
5572
|
+
Policy: output.Policy != null ? deserializeAws_json1_1Policy(output.Policy, context) : undefined,
|
|
5610
5573
|
};
|
|
5611
5574
|
};
|
|
5612
5575
|
var deserializeAws_json1_1DestinationParentNotFoundException = function (output, context) {
|
|
@@ -5616,7 +5579,7 @@ var deserializeAws_json1_1DestinationParentNotFoundException = function (output,
|
|
|
5616
5579
|
};
|
|
5617
5580
|
var deserializeAws_json1_1DisablePolicyTypeResponse = function (output, context) {
|
|
5618
5581
|
return {
|
|
5619
|
-
Root: output.Root
|
|
5582
|
+
Root: output.Root != null ? deserializeAws_json1_1Root(output.Root, context) : undefined,
|
|
5620
5583
|
};
|
|
5621
5584
|
};
|
|
5622
5585
|
var deserializeAws_json1_1DuplicateAccountException = function (output, context) {
|
|
@@ -5646,7 +5609,7 @@ var deserializeAws_json1_1DuplicatePolicyException = function (output, context)
|
|
|
5646
5609
|
};
|
|
5647
5610
|
var deserializeAws_json1_1EffectivePolicy = function (output, context) {
|
|
5648
5611
|
return {
|
|
5649
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
5612
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5650
5613
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5651
5614
|
: undefined,
|
|
5652
5615
|
PolicyContent: __expectString(output.PolicyContent),
|
|
@@ -5661,14 +5624,12 @@ var deserializeAws_json1_1EffectivePolicyNotFoundException = function (output, c
|
|
|
5661
5624
|
};
|
|
5662
5625
|
var deserializeAws_json1_1EnableAllFeaturesResponse = function (output, context) {
|
|
5663
5626
|
return {
|
|
5664
|
-
Handshake: output.Handshake
|
|
5665
|
-
? deserializeAws_json1_1Handshake(output.Handshake, context)
|
|
5666
|
-
: undefined,
|
|
5627
|
+
Handshake: output.Handshake != null ? deserializeAws_json1_1Handshake(output.Handshake, context) : undefined,
|
|
5667
5628
|
};
|
|
5668
5629
|
};
|
|
5669
5630
|
var deserializeAws_json1_1EnabledServicePrincipal = function (output, context) {
|
|
5670
5631
|
return {
|
|
5671
|
-
DateEnabled: output.DateEnabled
|
|
5632
|
+
DateEnabled: output.DateEnabled != null
|
|
5672
5633
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateEnabled)))
|
|
5673
5634
|
: undefined,
|
|
5674
5635
|
ServicePrincipal: __expectString(output.ServicePrincipal),
|
|
@@ -5687,7 +5648,7 @@ var deserializeAws_json1_1EnabledServicePrincipals = function (output, context)
|
|
|
5687
5648
|
};
|
|
5688
5649
|
var deserializeAws_json1_1EnablePolicyTypeResponse = function (output, context) {
|
|
5689
5650
|
return {
|
|
5690
|
-
Root: output.Root
|
|
5651
|
+
Root: output.Root != null ? deserializeAws_json1_1Root(output.Root, context) : undefined,
|
|
5691
5652
|
};
|
|
5692
5653
|
};
|
|
5693
5654
|
var deserializeAws_json1_1FinalizingOrganizationException = function (output, context) {
|
|
@@ -5699,19 +5660,15 @@ var deserializeAws_json1_1Handshake = function (output, context) {
|
|
|
5699
5660
|
return {
|
|
5700
5661
|
Action: __expectString(output.Action),
|
|
5701
5662
|
Arn: __expectString(output.Arn),
|
|
5702
|
-
ExpirationTimestamp: output.ExpirationTimestamp
|
|
5663
|
+
ExpirationTimestamp: output.ExpirationTimestamp != null
|
|
5703
5664
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationTimestamp)))
|
|
5704
5665
|
: undefined,
|
|
5705
5666
|
Id: __expectString(output.Id),
|
|
5706
|
-
Parties: output.Parties
|
|
5707
|
-
|
|
5708
|
-
: undefined,
|
|
5709
|
-
RequestedTimestamp: output.RequestedTimestamp !== undefined && output.RequestedTimestamp !== null
|
|
5667
|
+
Parties: output.Parties != null ? deserializeAws_json1_1HandshakeParties(output.Parties, context) : undefined,
|
|
5668
|
+
RequestedTimestamp: output.RequestedTimestamp != null
|
|
5710
5669
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RequestedTimestamp)))
|
|
5711
5670
|
: undefined,
|
|
5712
|
-
Resources: output.Resources
|
|
5713
|
-
? deserializeAws_json1_1HandshakeResources(output.Resources, context)
|
|
5714
|
-
: undefined,
|
|
5671
|
+
Resources: output.Resources != null ? deserializeAws_json1_1HandshakeResources(output.Resources, context) : undefined,
|
|
5715
5672
|
State: __expectString(output.State),
|
|
5716
5673
|
};
|
|
5717
5674
|
};
|
|
@@ -5750,9 +5707,7 @@ var deserializeAws_json1_1HandshakeParty = function (output, context) {
|
|
|
5750
5707
|
};
|
|
5751
5708
|
var deserializeAws_json1_1HandshakeResource = function (output, context) {
|
|
5752
5709
|
return {
|
|
5753
|
-
Resources: output.Resources
|
|
5754
|
-
? deserializeAws_json1_1HandshakeResources(output.Resources, context)
|
|
5755
|
-
: undefined,
|
|
5710
|
+
Resources: output.Resources != null ? deserializeAws_json1_1HandshakeResources(output.Resources, context) : undefined,
|
|
5756
5711
|
Type: __expectString(output.Type),
|
|
5757
5712
|
Value: __expectString(output.Value),
|
|
5758
5713
|
};
|
|
@@ -5792,30 +5747,24 @@ var deserializeAws_json1_1InvalidInputException = function (output, context) {
|
|
|
5792
5747
|
};
|
|
5793
5748
|
var deserializeAws_json1_1InviteAccountToOrganizationResponse = function (output, context) {
|
|
5794
5749
|
return {
|
|
5795
|
-
Handshake: output.Handshake
|
|
5796
|
-
? deserializeAws_json1_1Handshake(output.Handshake, context)
|
|
5797
|
-
: undefined,
|
|
5750
|
+
Handshake: output.Handshake != null ? deserializeAws_json1_1Handshake(output.Handshake, context) : undefined,
|
|
5798
5751
|
};
|
|
5799
5752
|
};
|
|
5800
5753
|
var deserializeAws_json1_1ListAccountsForParentResponse = function (output, context) {
|
|
5801
5754
|
return {
|
|
5802
|
-
Accounts: output.Accounts
|
|
5803
|
-
? deserializeAws_json1_1Accounts(output.Accounts, context)
|
|
5804
|
-
: undefined,
|
|
5755
|
+
Accounts: output.Accounts != null ? deserializeAws_json1_1Accounts(output.Accounts, context) : undefined,
|
|
5805
5756
|
NextToken: __expectString(output.NextToken),
|
|
5806
5757
|
};
|
|
5807
5758
|
};
|
|
5808
5759
|
var deserializeAws_json1_1ListAccountsResponse = function (output, context) {
|
|
5809
5760
|
return {
|
|
5810
|
-
Accounts: output.Accounts
|
|
5811
|
-
? deserializeAws_json1_1Accounts(output.Accounts, context)
|
|
5812
|
-
: undefined,
|
|
5761
|
+
Accounts: output.Accounts != null ? deserializeAws_json1_1Accounts(output.Accounts, context) : undefined,
|
|
5813
5762
|
NextToken: __expectString(output.NextToken),
|
|
5814
5763
|
};
|
|
5815
5764
|
};
|
|
5816
5765
|
var deserializeAws_json1_1ListAWSServiceAccessForOrganizationResponse = function (output, context) {
|
|
5817
5766
|
return {
|
|
5818
|
-
EnabledServicePrincipals: output.EnabledServicePrincipals
|
|
5767
|
+
EnabledServicePrincipals: output.EnabledServicePrincipals != null
|
|
5819
5768
|
? deserializeAws_json1_1EnabledServicePrincipals(output.EnabledServicePrincipals, context)
|
|
5820
5769
|
: undefined,
|
|
5821
5770
|
NextToken: __expectString(output.NextToken),
|
|
@@ -5823,15 +5772,13 @@ var deserializeAws_json1_1ListAWSServiceAccessForOrganizationResponse = function
|
|
|
5823
5772
|
};
|
|
5824
5773
|
var deserializeAws_json1_1ListChildrenResponse = function (output, context) {
|
|
5825
5774
|
return {
|
|
5826
|
-
Children: output.Children
|
|
5827
|
-
? deserializeAws_json1_1Children(output.Children, context)
|
|
5828
|
-
: undefined,
|
|
5775
|
+
Children: output.Children != null ? deserializeAws_json1_1Children(output.Children, context) : undefined,
|
|
5829
5776
|
NextToken: __expectString(output.NextToken),
|
|
5830
5777
|
};
|
|
5831
5778
|
};
|
|
5832
5779
|
var deserializeAws_json1_1ListCreateAccountStatusResponse = function (output, context) {
|
|
5833
5780
|
return {
|
|
5834
|
-
CreateAccountStatuses: output.CreateAccountStatuses
|
|
5781
|
+
CreateAccountStatuses: output.CreateAccountStatuses != null
|
|
5835
5782
|
? deserializeAws_json1_1CreateAccountStatuses(output.CreateAccountStatuses, context)
|
|
5836
5783
|
: undefined,
|
|
5837
5784
|
NextToken: __expectString(output.NextToken),
|
|
@@ -5839,7 +5786,7 @@ var deserializeAws_json1_1ListCreateAccountStatusResponse = function (output, co
|
|
|
5839
5786
|
};
|
|
5840
5787
|
var deserializeAws_json1_1ListDelegatedAdministratorsResponse = function (output, context) {
|
|
5841
5788
|
return {
|
|
5842
|
-
DelegatedAdministrators: output.DelegatedAdministrators
|
|
5789
|
+
DelegatedAdministrators: output.DelegatedAdministrators != null
|
|
5843
5790
|
? deserializeAws_json1_1DelegatedAdministrators(output.DelegatedAdministrators, context)
|
|
5844
5791
|
: undefined,
|
|
5845
5792
|
NextToken: __expectString(output.NextToken),
|
|
@@ -5847,7 +5794,7 @@ var deserializeAws_json1_1ListDelegatedAdministratorsResponse = function (output
|
|
|
5847
5794
|
};
|
|
5848
5795
|
var deserializeAws_json1_1ListDelegatedServicesForAccountResponse = function (output, context) {
|
|
5849
5796
|
return {
|
|
5850
|
-
DelegatedServices: output.DelegatedServices
|
|
5797
|
+
DelegatedServices: output.DelegatedServices != null
|
|
5851
5798
|
? deserializeAws_json1_1DelegatedServices(output.DelegatedServices, context)
|
|
5852
5799
|
: undefined,
|
|
5853
5800
|
NextToken: __expectString(output.NextToken),
|
|
@@ -5855,24 +5802,20 @@ var deserializeAws_json1_1ListDelegatedServicesForAccountResponse = function (ou
|
|
|
5855
5802
|
};
|
|
5856
5803
|
var deserializeAws_json1_1ListHandshakesForAccountResponse = function (output, context) {
|
|
5857
5804
|
return {
|
|
5858
|
-
Handshakes: output.Handshakes
|
|
5859
|
-
? deserializeAws_json1_1Handshakes(output.Handshakes, context)
|
|
5860
|
-
: undefined,
|
|
5805
|
+
Handshakes: output.Handshakes != null ? deserializeAws_json1_1Handshakes(output.Handshakes, context) : undefined,
|
|
5861
5806
|
NextToken: __expectString(output.NextToken),
|
|
5862
5807
|
};
|
|
5863
5808
|
};
|
|
5864
5809
|
var deserializeAws_json1_1ListHandshakesForOrganizationResponse = function (output, context) {
|
|
5865
5810
|
return {
|
|
5866
|
-
Handshakes: output.Handshakes
|
|
5867
|
-
? deserializeAws_json1_1Handshakes(output.Handshakes, context)
|
|
5868
|
-
: undefined,
|
|
5811
|
+
Handshakes: output.Handshakes != null ? deserializeAws_json1_1Handshakes(output.Handshakes, context) : undefined,
|
|
5869
5812
|
NextToken: __expectString(output.NextToken),
|
|
5870
5813
|
};
|
|
5871
5814
|
};
|
|
5872
5815
|
var deserializeAws_json1_1ListOrganizationalUnitsForParentResponse = function (output, context) {
|
|
5873
5816
|
return {
|
|
5874
5817
|
NextToken: __expectString(output.NextToken),
|
|
5875
|
-
OrganizationalUnits: output.OrganizationalUnits
|
|
5818
|
+
OrganizationalUnits: output.OrganizationalUnits != null
|
|
5876
5819
|
? deserializeAws_json1_1OrganizationalUnits(output.OrganizationalUnits, context)
|
|
5877
5820
|
: undefined,
|
|
5878
5821
|
};
|
|
@@ -5880,47 +5823,37 @@ var deserializeAws_json1_1ListOrganizationalUnitsForParentResponse = function (o
|
|
|
5880
5823
|
var deserializeAws_json1_1ListParentsResponse = function (output, context) {
|
|
5881
5824
|
return {
|
|
5882
5825
|
NextToken: __expectString(output.NextToken),
|
|
5883
|
-
Parents: output.Parents
|
|
5884
|
-
? deserializeAws_json1_1Parents(output.Parents, context)
|
|
5885
|
-
: undefined,
|
|
5826
|
+
Parents: output.Parents != null ? deserializeAws_json1_1Parents(output.Parents, context) : undefined,
|
|
5886
5827
|
};
|
|
5887
5828
|
};
|
|
5888
5829
|
var deserializeAws_json1_1ListPoliciesForTargetResponse = function (output, context) {
|
|
5889
5830
|
return {
|
|
5890
5831
|
NextToken: __expectString(output.NextToken),
|
|
5891
|
-
Policies: output.Policies
|
|
5892
|
-
? deserializeAws_json1_1Policies(output.Policies, context)
|
|
5893
|
-
: undefined,
|
|
5832
|
+
Policies: output.Policies != null ? deserializeAws_json1_1Policies(output.Policies, context) : undefined,
|
|
5894
5833
|
};
|
|
5895
5834
|
};
|
|
5896
5835
|
var deserializeAws_json1_1ListPoliciesResponse = function (output, context) {
|
|
5897
5836
|
return {
|
|
5898
5837
|
NextToken: __expectString(output.NextToken),
|
|
5899
|
-
Policies: output.Policies
|
|
5900
|
-
? deserializeAws_json1_1Policies(output.Policies, context)
|
|
5901
|
-
: undefined,
|
|
5838
|
+
Policies: output.Policies != null ? deserializeAws_json1_1Policies(output.Policies, context) : undefined,
|
|
5902
5839
|
};
|
|
5903
5840
|
};
|
|
5904
5841
|
var deserializeAws_json1_1ListRootsResponse = function (output, context) {
|
|
5905
5842
|
return {
|
|
5906
5843
|
NextToken: __expectString(output.NextToken),
|
|
5907
|
-
Roots: output.Roots
|
|
5908
|
-
? deserializeAws_json1_1Roots(output.Roots, context)
|
|
5909
|
-
: undefined,
|
|
5844
|
+
Roots: output.Roots != null ? deserializeAws_json1_1Roots(output.Roots, context) : undefined,
|
|
5910
5845
|
};
|
|
5911
5846
|
};
|
|
5912
5847
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
5913
5848
|
return {
|
|
5914
5849
|
NextToken: __expectString(output.NextToken),
|
|
5915
|
-
Tags: output.Tags
|
|
5850
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
5916
5851
|
};
|
|
5917
5852
|
};
|
|
5918
5853
|
var deserializeAws_json1_1ListTargetsForPolicyResponse = function (output, context) {
|
|
5919
5854
|
return {
|
|
5920
5855
|
NextToken: __expectString(output.NextToken),
|
|
5921
|
-
Targets: output.Targets
|
|
5922
|
-
? deserializeAws_json1_1PolicyTargets(output.Targets, context)
|
|
5923
|
-
: undefined,
|
|
5856
|
+
Targets: output.Targets != null ? deserializeAws_json1_1PolicyTargets(output.Targets, context) : undefined,
|
|
5924
5857
|
};
|
|
5925
5858
|
};
|
|
5926
5859
|
var deserializeAws_json1_1MalformedPolicyDocumentException = function (output, context) {
|
|
@@ -5936,7 +5869,7 @@ var deserializeAws_json1_1MasterCannotLeaveOrganizationException = function (out
|
|
|
5936
5869
|
var deserializeAws_json1_1Organization = function (output, context) {
|
|
5937
5870
|
return {
|
|
5938
5871
|
Arn: __expectString(output.Arn),
|
|
5939
|
-
AvailablePolicyTypes: output.AvailablePolicyTypes
|
|
5872
|
+
AvailablePolicyTypes: output.AvailablePolicyTypes != null
|
|
5940
5873
|
? deserializeAws_json1_1PolicyTypes(output.AvailablePolicyTypes, context)
|
|
5941
5874
|
: undefined,
|
|
5942
5875
|
FeatureSet: __expectString(output.FeatureSet),
|
|
@@ -6015,9 +5948,7 @@ var deserializeAws_json1_1Policies = function (output, context) {
|
|
|
6015
5948
|
var deserializeAws_json1_1Policy = function (output, context) {
|
|
6016
5949
|
return {
|
|
6017
5950
|
Content: __expectString(output.Content),
|
|
6018
|
-
PolicySummary: output.PolicySummary
|
|
6019
|
-
? deserializeAws_json1_1PolicySummary(output.PolicySummary, context)
|
|
6020
|
-
: undefined,
|
|
5951
|
+
PolicySummary: output.PolicySummary != null ? deserializeAws_json1_1PolicySummary(output.PolicySummary, context) : undefined,
|
|
6021
5952
|
};
|
|
6022
5953
|
};
|
|
6023
5954
|
var deserializeAws_json1_1PolicyChangesInProgressException = function (output, context) {
|
|
@@ -6106,9 +6037,7 @@ var deserializeAws_json1_1Root = function (output, context) {
|
|
|
6106
6037
|
Arn: __expectString(output.Arn),
|
|
6107
6038
|
Id: __expectString(output.Id),
|
|
6108
6039
|
Name: __expectString(output.Name),
|
|
6109
|
-
PolicyTypes: output.PolicyTypes
|
|
6110
|
-
? deserializeAws_json1_1PolicyTypes(output.PolicyTypes, context)
|
|
6111
|
-
: undefined,
|
|
6040
|
+
PolicyTypes: output.PolicyTypes != null ? deserializeAws_json1_1PolicyTypes(output.PolicyTypes, context) : undefined,
|
|
6112
6041
|
};
|
|
6113
6042
|
};
|
|
6114
6043
|
var deserializeAws_json1_1RootNotFoundException = function (output, context) {
|
|
@@ -6172,16 +6101,14 @@ var deserializeAws_json1_1UnsupportedAPIEndpointException = function (output, co
|
|
|
6172
6101
|
};
|
|
6173
6102
|
var deserializeAws_json1_1UpdateOrganizationalUnitResponse = function (output, context) {
|
|
6174
6103
|
return {
|
|
6175
|
-
OrganizationalUnit: output.OrganizationalUnit
|
|
6104
|
+
OrganizationalUnit: output.OrganizationalUnit != null
|
|
6176
6105
|
? deserializeAws_json1_1OrganizationalUnit(output.OrganizationalUnit, context)
|
|
6177
6106
|
: undefined,
|
|
6178
6107
|
};
|
|
6179
6108
|
};
|
|
6180
6109
|
var deserializeAws_json1_1UpdatePolicyResponse = function (output, context) {
|
|
6181
6110
|
return {
|
|
6182
|
-
Policy: output.Policy
|
|
6183
|
-
? deserializeAws_json1_1Policy(output.Policy, context)
|
|
6184
|
-
: undefined,
|
|
6111
|
+
Policy: output.Policy != null ? deserializeAws_json1_1Policy(output.Policy, context) : undefined,
|
|
6185
6112
|
};
|
|
6186
6113
|
};
|
|
6187
6114
|
var deserializeMetadata = function (output) {
|
|
@@ -6240,6 +6167,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
6240
6167
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
6241
6168
|
var sanitizeErrorCode = function (rawValue) {
|
|
6242
6169
|
var cleanValue = rawValue;
|
|
6170
|
+
if (typeof cleanValue === "number") {
|
|
6171
|
+
cleanValue = cleanValue.toString();
|
|
6172
|
+
}
|
|
6243
6173
|
if (cleanValue.indexOf(":") >= 0) {
|
|
6244
6174
|
cleanValue = cleanValue.split(":")[0];
|
|
6245
6175
|
}
|