{ "opencollection": "1.0.0", "info": { "name": "APIs.io Engineering Platform Amazon API Gateway 2014 11 13 2015 03 31 API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "2015 03 31", "type": "folder" }, "items": [ { "info": { "name": "GetPolicy", "type": "http" }, "http": { "method": "GET", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/policy", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "
The name of the Lambda function, version, or alias.
Name formats
Function name – my-function (name-only), my-function:v1 (with alias).
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
Partial ARN – 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Qualifier", "value": "", "type": "query", "description": "Specify a version or alias to get the policy for that resource." } ] }, "docs": "Returns the resource-based IAM policy for a function, version, or alias." }, { "info": { "name": "AddPermission", "type": "http" }, "http": { "method": "POST", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/policy", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "The name of the Lambda function, version, or alias.
Name formats
Function name – my-function (name-only), my-function:v1 (with alias).
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
Partial ARN – 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Qualifier", "value": "", "type": "query", "description": "Specify a version or alias to add permissions to a published version of the function." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.
To grant permission to another account, specify t" }, { "info": { "name": "ListAliases", "type": "http" }, "http": { "method": "GET", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/aliases", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "
The name of the Lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "FunctionVersion", "value": "", "type": "query", "description": "Specify a function version to only list aliases that invoke that version." }, { "name": "Marker", "value": "", "type": "query", "description": "Specify the pagination token that's returned by a previous request to retrieve the next page of results." }, { "name": "MaxItems", "value": "", "type": "query", "description": "Limit the number of aliases returned." } ] }, "docs": "Returns a list of aliases for a Lambda function." }, { "info": { "name": "CreateAlias", "type": "http" }, "http": { "method": "POST", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/aliases", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "The name of the Lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
The Amazon Resource Name (ARN) of the event source.
Amazon Kinesis – The ARN of the data stream or a stream consumer.
Amazon DynamoDB Streams – The ARN of the stream.
Amazon Simple Queue Service – The ARN of the queue.
Amazon Managed Streaming for Apache Kafka – The ARN of the cluster.
Amazon MQ – The ARN of the broker.
Amazon DocumentDB – The ARN of the DocumentDB change stream.
The name of the Lambda function.
Name formats
Function name – MyFunction.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Version or Alias ARN – arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.
Partial ARN – 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
" }, { "name": "Marker", "value": "", "type": "query", "description": "A pagination token returned by a previous call." }, { "name": "MaxItems", "value": "", "type": "query", "description": "The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher." } ] }, "docs": "Lists event source mappings. Specify anEventSourceArn to show only event source mappings for a single event source."
},
{
"info": {
"name": "CreateEventSourceMapping",
"type": "http"
},
"http": {
"method": "POST",
"url": "http://apigateway.{region}.amazonaws.com/2015-03-31/event-source-mappings/",
"headers": [
{
"name": "X-Amz-Content-Sha256",
"value": ""
},
{
"name": "X-Amz-Date",
"value": ""
},
{
"name": "X-Amz-Algorithm",
"value": ""
},
{
"name": "X-Amz-Credential",
"value": ""
},
{
"name": "X-Amz-Security-Token",
"value": ""
},
{
"name": "X-Amz-Signature",
"value": ""
},
{
"name": "X-Amz-SignedHeaders",
"value": ""
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.
For details about how to configure different event sources, see the following topics.
Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services, such as Amazon C" }, { "info": { "name": "GetAlias", "type": "http" }, "http": { "method": "GET", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/aliases/:Name", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "
The name of the Lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Name", "value": "", "type": "path", "description": "The name of the alias." } ] }, "docs": "Returns details about a Lambda function alias." }, { "info": { "name": "UpdateAlias", "type": "http" }, "http": { "method": "PUT", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/aliases/:Name", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "The name of the Lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Name", "value": "", "type": "path", "description": "The name of the alias." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the configuration of a Lambda function alias." }, { "info": { "name": "DeleteAlias", "type": "http" }, "http": { "method": "DELETE", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/aliases/:Name", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "The name of the Lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Name", "value": "", "type": "path", "description": "The name of the alias." } ] }, "docs": "Deletes a Lambda function alias." }, { "info": { "name": "GetEventSourceMapping", "type": "http" }, "http": { "method": "GET", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/event-source-mappings/:UUID", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "UUID", "value": "", "type": "path", "description": "The identifier of the event source mapping." } ] }, "docs": "Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings." }, { "info": { "name": "UpdateEventSourceMapping", "type": "http" }, "http": { "method": "PUT", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/event-source-mappings/:UUID", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "UUID", "value": "", "type": "path", "description": "The identifier of the event source mapping." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.
The name of the Lambda function, version, or alias.
Name formats
Function name – my-function (name-only), my-function:v1 (with alias).
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
Partial ARN – 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Qualifier", "value": "", "type": "query", "description": "Specify a version or alias to get details about a published version of the function." } ] }, "docs": "Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned." }, { "info": { "name": "DeleteFunction", "type": "http" }, "http": { "method": "DELETE", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "The name of the Lambda function or version.
Name formats
Function name – my-function (name-only), my-function:1 (with version).
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
Partial ARN – 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Qualifier", "value": "", "type": "query", "description": "Specify a version to delete. You can't delete a version that an alias references." } ] }, "docs": "Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted.
To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
" }, { "info": { "name": "GetFunctionConfiguration", "type": "http" }, "http": { "method": "GET", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/configuration", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "The name of the Lambda function, version, or alias.
Name formats
Function name – my-function (name-only), my-function:v1 (with alias).
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
Partial ARN – 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Qualifier", "value": "", "type": "query", "description": "Specify a version or alias to get details about a published version of the function." } ] }, "docs": "Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
" }, { "info": { "name": "UpdateFunctionConfiguration", "type": "http" }, "http": { "method": "PUT", "url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/configuration", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "FunctionName", "value": "", "type": "path", "description": "The name of the Lambda function.
Name formats
Function name – my-function.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
Partial ARN – 123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Modify the version-specific settings of a Lambda function.
When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indic"
},
{
"info": {
"name": "Invoke",
"type": "http"
},
"http": {
"method": "POST",
"url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/invocations",
"headers": [
{
"name": "X-Amz-Content-Sha256",
"value": ""
},
{
"name": "X-Amz-Date",
"value": ""
},
{
"name": "X-Amz-Algorithm",
"value": ""
},
{
"name": "X-Amz-Credential",
"value": ""
},
{
"name": "X-Amz-Security-Token",
"value": ""
},
{
"name": "X-Amz-Signature",
"value": ""
},
{
"name": "X-Amz-SignedHeaders",
"value": ""
},
{
"name": "X-Amz-Invocation-Type",
"value": ""
},
{
"name": "X-Amz-Log-Type",
"value": ""
},
{
"name": "X-Amz-Client-Context",
"value": ""
}
],
"params": [
{
"name": "FunctionName",
"value": "",
"type": "path",
"description": "
The name of the Lambda function, version, or alias.
Name formats
Function name – my-function (name-only), my-function:v1 (with alias).
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
Partial ARN – 123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" }, { "name": "Qualifier", "value": "", "type": "query", "description": "Specify a version or alias to invoke a published version of the function." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event.
For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the us-east-1 filters the list of functions to include only Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call. Set The The name of the Lambda function. Name formats Function name - Function ARN - Partial ARN - The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. The name of the Lambda function. Name formats Function name - Function ARN - Partial ARN - The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change. Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version. The name of the Lambda function, version, or alias. Name formats Function name – Function ARN – Partial ARN – You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. The name of the Lambda function. Name formats Function name – Function ARN – Partial ARN – The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda. If the function's package type is FunctionVersion to ALL."
},
{
"name": "FunctionVersion",
"value": "",
"type": "query",
"description": "Set to ALL to include entries for all published versions of each function."
},
{
"name": "Marker",
"value": "",
"type": "query",
"description": "Specify the pagination token that's returned by a previous request to retrieve the next page of results."
},
{
"name": "MaxItems",
"value": "",
"type": "query",
"description": "The maximum number of functions to return in the response. Note that ListFunctions returns a maximum of 50 items in each response, even if you set the number higher."
}
]
},
"docs": "FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.ListFunctions operation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatus"
},
{
"info": {
"name": "ListVersionsByFunction",
"type": "http"
},
"http": {
"method": "GET",
"url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/versions",
"headers": [
{
"name": "X-Amz-Content-Sha256",
"value": ""
},
{
"name": "X-Amz-Date",
"value": ""
},
{
"name": "X-Amz-Algorithm",
"value": ""
},
{
"name": "X-Amz-Credential",
"value": ""
},
{
"name": "X-Amz-Security-Token",
"value": ""
},
{
"name": "X-Amz-Signature",
"value": ""
},
{
"name": "X-Amz-SignedHeaders",
"value": ""
}
],
"params": [
{
"name": "FunctionName",
"value": "",
"type": "path",
"description": "
MyFunction.arn:aws:lambda:us-west-2:123456789012:function:MyFunction.123456789012:function:MyFunction.ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher."
}
]
},
"docs": "Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call."
},
{
"info": {
"name": "PublishVersion",
"type": "http"
},
"http": {
"method": "POST",
"url": "http://apigateway.{region}.amazonaws.com/2015-03-31/functions/:FunctionName/versions",
"headers": [
{
"name": "X-Amz-Content-Sha256",
"value": ""
},
{
"name": "X-Amz-Date",
"value": ""
},
{
"name": "X-Amz-Algorithm",
"value": ""
},
{
"name": "X-Amz-Credential",
"value": ""
},
{
"name": "X-Amz-Security-Token",
"value": ""
},
{
"name": "X-Amz-Signature",
"value": ""
},
{
"name": "X-Amz-SignedHeaders",
"value": ""
}
],
"params": [
{
"name": "FunctionName",
"value": "",
"type": "path",
"description": "
MyFunction.arn:aws:lambda:us-west-2:123456789012:function:MyFunction.123456789012:function:MyFunction.
my-function (name-only), my-function:v1 (with alias).arn:aws:lambda:us-west-2:123456789012:function:my-function.123456789012:function:my-function.
my-function.arn:aws:lambda:us-west-2:123456789012:function:my-function.123456789012:function:my-function.Image, then you must specify the code package in ImageUri as the URI of a