Skip to content

Commit

Permalink
fix(amplify-headless-interface): added lambda auth type to headless a…
Browse files Browse the repository at this point in the history
…pi payloads (#13729)
  • Loading branch information
vishal-dms committed Apr 22, 2024
1 parent 038829c commit 450eaf1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
},
{
"$ref": "#/definitions/AppSyncOpenIDConnectAuthType"
},
{
"$ref": "#/definitions/AppSyncLambdaAuthType"
}
]
},
Expand All @@ -64,6 +67,9 @@
},
{
"$ref": "#/definitions/AppSyncOpenIDConnectAuthType"
},
{
"$ref": "#/definitions/AppSyncLambdaAuthType"
}
]
}
Expand Down Expand Up @@ -144,6 +150,23 @@
},
"required": ["mode", "openIDClientID", "openIDIssuerURL", "openIDProviderName"]
},
"AppSyncLambdaAuthType": {
"description": "Specifies that the AppSync API should be secured using a Lambda Function.",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": ["AWS_LAMBDA"]
},
"lambdaFunction": {
"type": "string"
},
"ttlSeconds": {
"type": "string"
}
},
"required": ["mode", "lambdaFunction"]
},
"ConflictResolution": {
"description": "Defines a strategy for resolving API write conflicts.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
},
{
"$ref": "#/definitions/AppSyncOpenIDConnectAuthType"
},
{
"$ref": "#/definitions/AppSyncLambdaAuthType"
}
]
},
Expand All @@ -71,6 +74,9 @@
},
{
"$ref": "#/definitions/AppSyncOpenIDConnectAuthType"
},
{
"$ref": "#/definitions/AppSyncLambdaAuthType"
}
]
}
Expand Down Expand Up @@ -150,6 +156,23 @@
},
"required": ["mode", "openIDClientID", "openIDIssuerURL", "openIDProviderName"]
},
"AppSyncLambdaAuthType": {
"description": "Specifies that the AppSync API should be secured using a Lambda Function.",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": ["AWS_LAMBDA"]
},
"lambdaFunction": {
"type": "string"
},
"ttlSeconds": {
"type": "string"
}
},
"required": ["mode", "lambdaFunction"]
},
"ConflictResolution": {
"description": "Defines a strategy for resolving API write conflicts.",
"type": "object",
Expand Down

0 comments on commit 450eaf1

Please sign in to comment.