|
48 | 48 | {"shape":"InvalidParameterValueException"},
|
49 | 49 | {"shape":"PolicyLengthExceededException"},
|
50 | 50 | {"shape":"TooManyRequestsException"},
|
51 |
| - {"shape":"PreconditionFailedException"} |
| 51 | + {"shape":"PreconditionFailedException"}, |
| 52 | + {"shape":"PublicPolicyException"} |
52 | 53 | ],
|
53 |
| - "documentation":"<p>Grants an Amazon Web Servicesservice, 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.</p> <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant permission to an organization defined in Organizations, specify the organization ID as the <code>PrincipalOrgID</code>. For Amazon Web Servicesservices, the principal is a domain-style identifier that the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.</p> <p>This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">Using resource-based policies for Lambda</a>.</p>" |
| 54 | + "documentation":"<p>Grants a <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying\">principal</a> 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.</p> <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant permission to an organization defined in Organizations, specify the organization ID as the <code>PrincipalOrgID</code>. For Amazon Web Servicesservices, the principal is a domain-style identifier that the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.</p> <p>This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">Using resource-based policies for Lambda</a>.</p>" |
54 | 55 | },
|
55 | 56 | "CreateAlias":{
|
56 | 57 | "name":"CreateAlias",
|
|
327 | 328 | {"shape":"TooManyRequestsException"},
|
328 | 329 | {"shape":"PreconditionFailedException"}
|
329 | 330 | ],
|
330 |
| - "documentation":"<p>Deletes a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policy</a> from a function.</p>" |
| 331 | + "documentation":"<note> <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.</p> </note> <p>Deletes a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policy</a> from a function.</p>" |
331 | 332 | },
|
332 | 333 | "GetAccountSettings":{
|
333 | 334 | "name":"GetAccountSettings",
|
|
614 | 615 | {"shape":"TooManyRequestsException"},
|
615 | 616 | {"shape":"InvalidParameterValueException"}
|
616 | 617 | ],
|
617 |
| - "documentation":"<p>Retrieve the public-access settings for a function.</p>" |
| 618 | + "documentation":"<note> <p>The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.</p> </note> <p>Retrieve the public-access settings for a function.</p>" |
618 | 619 | },
|
619 | 620 | "GetResourcePolicy":{
|
620 | 621 | "name":"GetResourcePolicy",
|
|
631 | 632 | {"shape":"TooManyRequestsException"},
|
632 | 633 | {"shape":"InvalidParameterValueException"}
|
633 | 634 | ],
|
634 |
| - "documentation":"<p>Retrieves the <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policy</a> attached to a function.</p>" |
| 635 | + "documentation":"<note> <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.</p> </note> <p>Retrieves the <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policy</a> attached to a function.</p>" |
635 | 636 | },
|
636 | 637 | "GetRuntimeManagementConfig":{
|
637 | 638 | "name":"GetRuntimeManagementConfig",
|
|
932 | 933 | {"shape":"InvalidParameterValueException"},
|
933 | 934 | {"shape":"TooManyRequestsException"}
|
934 | 935 | ],
|
935 |
| - "documentation":"<p>Returns a function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a>. You can also view tags with <a>GetFunction</a>.</p>" |
| 936 | + "documentation":"<p>Returns a function, event source mapping, or code signing configuration's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a>. You can also view funciton tags with <a>GetFunction</a>.</p>" |
936 | 937 | },
|
937 | 938 | "ListVersionsByFunction":{
|
938 | 939 | "name":"ListVersionsByFunction",
|
|
1096 | 1097 | {"shape":"InvalidParameterValueException"},
|
1097 | 1098 | {"shape":"TooManyRequestsException"}
|
1098 | 1099 | ],
|
1099 |
| - "documentation":"<p>Configure your function's public-access settings.</p> <p>To control public access to a Lambda function, you can choose whether to allow the creation of <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policies</a> that allow public access to that function. You can also block public access to a function, even if it has an existing resource-based policy that allows it.</p>" |
| 1100 | + "documentation":"<note> <p>The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.</p> </note> <p>Configure your function's public-access settings.</p> <p>To control public access to a Lambda function, you can choose whether to allow the creation of <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policies</a> that allow public access to that function. You can also block public access to a function, even if it has an existing resource-based policy that allows it.</p>" |
1100 | 1101 | },
|
1101 | 1102 | "PutResourcePolicy":{
|
1102 | 1103 | "name":"PutResourcePolicy",
|
|
1117 | 1118 | {"shape":"PreconditionFailedException"},
|
1118 | 1119 | {"shape":"PublicPolicyException"}
|
1119 | 1120 | ],
|
1120 |
| - "documentation":"<p>Adds a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policy</a> to a function. You can use resource-based policies to grant access to other <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html\">Amazon Web Services accounts</a>, <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html\">organizations</a>, or <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-services.html\">services</a>. Resource-based policies apply to a single function, version, or alias.</p> <important> <p>Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if you've previously added resource-based permissions to a function using the <a>AddPermission</a> action, those permissions will be overwritten by your new policy.</p> </important>" |
| 1121 | + "documentation":"<note> <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be available in all Amazon Web Services Regions until September 30, 2024.</p> </note> <p>Adds a <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html\">resource-based policy</a> to a function. You can use resource-based policies to grant access to other <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html\">Amazon Web Services accounts</a>, <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html\">organizations</a>, or <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-services.html\">services</a>. Resource-based policies apply to a single function, version, or alias.</p> <important> <p>Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if you've previously added resource-based permissions to a function using the <a>AddPermission</a> action, those permissions will be overwritten by your new policy.</p> </important>" |
1121 | 1122 | },
|
1122 | 1123 | "PutRuntimeManagementConfig":{
|
1123 | 1124 | "name":"PutRuntimeManagementConfig",
|
|
1167 | 1168 | {"shape":"ResourceNotFoundException"},
|
1168 | 1169 | {"shape":"InvalidParameterValueException"},
|
1169 | 1170 | {"shape":"TooManyRequestsException"},
|
1170 |
| - {"shape":"PreconditionFailedException"} |
| 1171 | + {"shape":"PreconditionFailedException"}, |
| 1172 | + {"shape":"PublicPolicyException"} |
1171 | 1173 | ],
|
1172 | 1174 | "documentation":"<p>Revokes function-use permission from an Amazon Web Servicesservice or another Amazon Web Services account. You can get the ID of the statement from the output of <a>GetPolicy</a>.</p>"
|
1173 | 1175 | },
|
|
1186 | 1188 | {"shape":"TooManyRequestsException"},
|
1187 | 1189 | {"shape":"ResourceConflictException"}
|
1188 | 1190 | ],
|
1189 |
| - "documentation":"<p>Adds <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a> to a function.</p>" |
| 1191 | + "documentation":"<p>Adds <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a> to a function, event source mapping, or code signing configuration.</p>" |
1190 | 1192 | },
|
1191 | 1193 | "UntagResource":{
|
1192 | 1194 | "name":"UntagResource",
|
|
1203 | 1205 | {"shape":"TooManyRequestsException"},
|
1204 | 1206 | {"shape":"ResourceConflictException"}
|
1205 | 1207 | ],
|
1206 |
| - "documentation":"<p>Removes <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a> from a function.</p>" |
| 1208 | + "documentation":"<p>Removes <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a> from a function, event source mapping, or code signing configuration.</p>" |
1207 | 1209 | },
|
1208 | 1210 | "UpdateAlias":{
|
1209 | 1211 | "name":"UpdateAlias",
|
|
1470 | 1472 | },
|
1471 | 1473 | "Principal":{
|
1472 | 1474 | "shape":"Principal",
|
1473 |
| - "documentation":"<p>The Amazon Web Servicesservice or Amazon Web Services account that invokes the function. If you specify a service, use <code>SourceArn</code> or <code>SourceAccount</code> to limit who can invoke the function through that service.</p>" |
| 1475 | + "documentation":"<p>The Amazon Web Servicesservice, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a service, use <code>SourceArn</code> or <code>SourceAccount</code> to limit who can invoke the function through that service.</p>" |
1474 | 1476 | },
|
1475 | 1477 | "SourceArn":{
|
1476 | 1478 | "shape":"Arn",
|
|
1851 | 1853 | "CodeSigningPolicies":{
|
1852 | 1854 | "shape":"CodeSigningPolicies",
|
1853 | 1855 | "documentation":"<p>The code signing policies define the actions to take if the validation checks fail. </p>"
|
| 1856 | + }, |
| 1857 | + "Tags":{ |
| 1858 | + "shape":"Tags", |
| 1859 | + "documentation":"<p>A list of tags to add to the code signing configuration.</p>" |
1854 | 1860 | }
|
1855 | 1861 | }
|
1856 | 1862 | },
|
|
1920 | 1926 | "shape":"MaximumRetryAttemptsEventSourceMapping",
|
1921 | 1927 | "documentation":"<p>(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>"
|
1922 | 1928 | },
|
| 1929 | + "Tags":{ |
| 1930 | + "shape":"Tags", |
| 1931 | + "documentation":"<p>A list of tags to apply to the event source mapping.</p>" |
| 1932 | + }, |
1923 | 1933 | "TumblingWindowInSeconds":{
|
1924 | 1934 | "shape":"TumblingWindowInSeconds",
|
1925 | 1935 | "documentation":"<p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>"
|
|
2562 | 2572 | "max":10240,
|
2563 | 2573 | "min":512
|
2564 | 2574 | },
|
| 2575 | + "EventSourceMappingArn":{ |
| 2576 | + "type":"string", |
| 2577 | + "max":120, |
| 2578 | + "min":85, |
| 2579 | + "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:event-source-mapping:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" |
| 2580 | + }, |
2565 | 2581 | "EventSourceMappingConfiguration":{
|
2566 | 2582 | "type":"structure",
|
2567 | 2583 | "members":{
|
|
2680 | 2696 | "FilterCriteriaError":{
|
2681 | 2697 | "shape":"FilterCriteriaError",
|
2682 | 2698 | "documentation":"<p>An object that contains details about an error related to filter criteria encryption.</p>"
|
| 2699 | + }, |
| 2700 | + "EventSourceMappingArn":{ |
| 2701 | + "shape":"EventSourceMappingArn", |
| 2702 | + "documentation":"<p>The Amazon Resource Name (ARN) of the event source mapping.</p>" |
2683 | 2703 | }
|
2684 | 2704 | },
|
2685 | 2705 | "documentation":"<p>A mapping between an Amazon Web Services resource and a Lambda function. For details, see <a>CreateEventSourceMapping</a>.</p>"
|
|
4689 | 4709 | "required":["Resource"],
|
4690 | 4710 | "members":{
|
4691 | 4711 | "Resource":{
|
4692 |
| - "shape":"FunctionArn", |
4693 |
| - "documentation":"<p>The function's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to aliases or versions.</p>", |
| 4712 | + "shape":"TaggableResource", |
| 4713 | + "documentation":"<p>The resource's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to function aliases or versions.</p>", |
4694 | 4714 | "location":"uri",
|
4695 | 4715 | "locationName":"ARN"
|
4696 | 4716 | }
|
|
5993 | 6013 | ],
|
5994 | 6014 | "members":{
|
5995 | 6015 | "Resource":{
|
5996 |
| - "shape":"FunctionArn", |
5997 |
| - "documentation":"<p>The function's Amazon Resource Name (ARN).</p>", |
| 6016 | + "shape":"TaggableResource", |
| 6017 | + "documentation":"<p>The resource's Amazon Resource Name (ARN).</p>", |
5998 | 6018 | "location":"uri",
|
5999 | 6019 | "locationName":"ARN"
|
6000 | 6020 | },
|
6001 | 6021 | "Tags":{
|
6002 | 6022 | "shape":"Tags",
|
6003 |
| - "documentation":"<p>A list of tags to apply to the function.</p>" |
| 6023 | + "documentation":"<p>A list of tags to apply to the resource.</p>" |
6004 | 6024 | }
|
6005 | 6025 | }
|
6006 | 6026 | },
|
6007 | 6027 | "TagValue":{"type":"string"},
|
| 6028 | + "TaggableResource":{ |
| 6029 | + "type":"string", |
| 6030 | + "max":256, |
| 6031 | + "min":1, |
| 6032 | + "pattern":"arn:(aws[a-zA-Z-]*):lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:(function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?|code-signing-config:csc-[a-z0-9]{17}|event-source-mapping:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})" |
| 6033 | + }, |
6008 | 6034 | "Tags":{
|
6009 | 6035 | "type":"map",
|
6010 | 6036 | "key":{"shape":"TagKey"},
|
|
6121 | 6147 | ],
|
6122 | 6148 | "members":{
|
6123 | 6149 | "Resource":{
|
6124 |
| - "shape":"FunctionArn", |
6125 |
| - "documentation":"<p>The function's Amazon Resource Name (ARN).</p>", |
| 6150 | + "shape":"TaggableResource", |
| 6151 | + "documentation":"<p>The resource's Amazon Resource Name (ARN).</p>", |
6126 | 6152 | "location":"uri",
|
6127 | 6153 | "locationName":"ARN"
|
6128 | 6154 | },
|
6129 | 6155 | "TagKeys":{
|
6130 | 6156 | "shape":"TagKeyList",
|
6131 |
| - "documentation":"<p>A list of tag keys to remove from the function.</p>", |
| 6157 | + "documentation":"<p>A list of tag keys to remove from the resource.</p>", |
6132 | 6158 | "location":"querystring",
|
6133 | 6159 | "locationName":"tagKeys"
|
6134 | 6160 | }
|
|
0 commit comments