in clients/client-verifiedpermissions/src/protocols/Aws_json1_0.ts [1783:1960]
set: de_SetAttribute(output.set, context),
};
}
if (__expectString(output.string) !== undefined) {
return { string: __expectString(output.string) as any };
}
return { $unknown: Object.entries(output)[0] };
};
// de_Audiences omitted.
// de_BatchGetPolicyErrorItem omitted.
// de_BatchGetPolicyErrorList omitted.
/**
* deserializeAws_json1_0BatchGetPolicyOutput
*/
const de_BatchGetPolicyOutput = (output: any, context: __SerdeContext): BatchGetPolicyOutput => {
return take(output, {
errors: _json,
results: (_: any) => de_BatchGetPolicyOutputList(_, context),
}) as any;
};
/**
* deserializeAws_json1_0BatchGetPolicyOutputItem
*/
const de_BatchGetPolicyOutputItem = (output: any, context: __SerdeContext): BatchGetPolicyOutputItem => {
return take(output, {
createdDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
definition: (_: any) => _json(__expectUnion(_)),
lastUpdatedDate: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
policyId: __expectString,
policyStoreId: __expectString,
policyType: __expectString,
}) as any;
};
/**
* deserializeAws_json1_0BatchGetPolicyOutputList
*/
const de_BatchGetPolicyOutputList = (output: any, context: __SerdeContext): BatchGetPolicyOutputItem[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_BatchGetPolicyOutputItem(entry, context);
});
return retVal;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedInputItem
*/
const de_BatchIsAuthorizedInputItem = (output: any, context: __SerdeContext): BatchIsAuthorizedInputItem => {
return take(output, {
action: _json,
context: (_: any) => de_ContextDefinition(__expectUnion(_), context),
principal: _json,
resource: _json,
}) as any;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedOutput
*/
const de_BatchIsAuthorizedOutput = (output: any, context: __SerdeContext): BatchIsAuthorizedOutput => {
return take(output, {
results: (_: any) => de_BatchIsAuthorizedOutputList(_, context),
}) as any;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedOutputItem
*/
const de_BatchIsAuthorizedOutputItem = (output: any, context: __SerdeContext): BatchIsAuthorizedOutputItem => {
return take(output, {
decision: __expectString,
determiningPolicies: _json,
errors: _json,
request: (_: any) => de_BatchIsAuthorizedInputItem(_, context),
}) as any;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedOutputList
*/
const de_BatchIsAuthorizedOutputList = (output: any, context: __SerdeContext): BatchIsAuthorizedOutputItem[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_BatchIsAuthorizedOutputItem(entry, context);
});
return retVal;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedWithTokenInputItem
*/
const de_BatchIsAuthorizedWithTokenInputItem = (
output: any,
context: __SerdeContext
): BatchIsAuthorizedWithTokenInputItem => {
return take(output, {
action: _json,
context: (_: any) => de_ContextDefinition(__expectUnion(_), context),
resource: _json,
}) as any;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedWithTokenOutput
*/
const de_BatchIsAuthorizedWithTokenOutput = (
output: any,
context: __SerdeContext
): BatchIsAuthorizedWithTokenOutput => {
return take(output, {
principal: _json,
results: (_: any) => de_BatchIsAuthorizedWithTokenOutputList(_, context),
}) as any;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedWithTokenOutputItem
*/
const de_BatchIsAuthorizedWithTokenOutputItem = (
output: any,
context: __SerdeContext
): BatchIsAuthorizedWithTokenOutputItem => {
return take(output, {
decision: __expectString,
determiningPolicies: _json,
errors: _json,
request: (_: any) => de_BatchIsAuthorizedWithTokenInputItem(_, context),
}) as any;
};
/**
* deserializeAws_json1_0BatchIsAuthorizedWithTokenOutputList
*/
const de_BatchIsAuthorizedWithTokenOutputList = (
output: any,
context: __SerdeContext
): BatchIsAuthorizedWithTokenOutputItem[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_BatchIsAuthorizedWithTokenOutputItem(entry, context);
});
return retVal;
};
// de_ClientIds omitted.
// de_CognitoGroupConfigurationDetail omitted.
// de_CognitoGroupConfigurationItem omitted.
// de_CognitoUserPoolConfigurationDetail omitted.
// de_CognitoUserPoolConfigurationItem omitted.
// de_ConfigurationDetail omitted.
// de_ConfigurationItem omitted.
// de_ConflictException omitted.
/**
* deserializeAws_json1_0ContextDefinition
*/
const de_ContextDefinition = (output: any, context: __SerdeContext): ContextDefinition => {
if (__expectString(output.cedarJson) !== undefined) {
return { cedarJson: __expectString(output.cedarJson) as any };
}
if (output.contextMap != null) {
return {