diff --git a/codegen/sdk-codegen/aws-models/chatbot.json b/codegen/sdk-codegen/aws-models/chatbot.json index 1940cb5dca6..6b634fabe6d 100644 --- a/codegen/sdk-codegen/aws-models/chatbot.json +++ b/codegen/sdk-codegen/aws-models/chatbot.json @@ -112,6 +112,18 @@ "traits": { "smithy.api#documentation": "

A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

" } + }, + "State": { + "target": "com.amazonaws.chatbot#ResourceState", + "traits": { + "smithy.api#documentation": "

Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.

" + } + }, + "StateReason": { + "target": "com.amazonaws.chatbot#String", + "traits": { + "smithy.api#documentation": "

Provided if State is DISABLED. Provides context as to why the resource is disabled.

" + } } }, "traits": { @@ -177,6 +189,18 @@ "traits": { "smithy.api#documentation": "

The name of the Microsoft Teams Team.

" } + }, + "State": { + "target": "com.amazonaws.chatbot#ResourceState", + "traits": { + "smithy.api#documentation": "

Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.

" + } + }, + "StateReason": { + "target": "com.amazonaws.chatbot#String", + "traits": { + "smithy.api#documentation": "

Provided if State is DISABLED. Provides context as to why the resource is disabled.

" + } } }, "traits": { @@ -2030,6 +2054,12 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.chatbot#ResourceState": { + "type": "string", + "traits": { + "smithy.api#pattern": "^(ENABLED|DISABLED)$" + } + }, "com.amazonaws.chatbot#ServiceUnavailableException": { "type": "structure", "members": { @@ -2124,6 +2154,18 @@ "traits": { "smithy.api#documentation": "

A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

" } + }, + "State": { + "target": "com.amazonaws.chatbot#ResourceState", + "traits": { + "smithy.api#documentation": "

Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.

" + } + }, + "StateReason": { + "target": "com.amazonaws.chatbot#String", + "traits": { + "smithy.api#documentation": "

Provided if State is DISABLED. Provides context as to why the resource is disabled.

" + } } }, "traits": { @@ -2249,6 +2291,18 @@ "smithy.api#documentation": "

The name of the Slack workspace.

", "smithy.api#required": {} } + }, + "State": { + "target": "com.amazonaws.chatbot#ResourceState", + "traits": { + "smithy.api#documentation": "

Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.

" + } + }, + "StateReason": { + "target": "com.amazonaws.chatbot#String", + "traits": { + "smithy.api#documentation": "

Provided if State is DISABLED. Provides context as to why the resource is disabled.

" + } } }, "traits": { @@ -2267,6 +2321,9 @@ "target": "com.amazonaws.chatbot#Arn" } }, + "com.amazonaws.chatbot#String": { + "type": "string" + }, "com.amazonaws.chatbot#Tag": { "type": "structure", "members": { @@ -2500,6 +2557,18 @@ "traits": { "smithy.api#documentation": "

A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

" } + }, + "State": { + "target": "com.amazonaws.chatbot#ResourceState", + "traits": { + "smithy.api#documentation": "

Either ENABLED or DISABLED. The resource returns DISABLED if the organization's AWS Chatbot policy has explicitly denied that configuration.\n\t For example, if Amazon Chime is disabled.

" + } + }, + "StateReason": { + "target": "com.amazonaws.chatbot#String", + "traits": { + "smithy.api#documentation": "

Provided if State is DISABLED. Provides context as to why the resource is disabled.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/lambda.json b/codegen/sdk-codegen/aws-models/lambda.json index 9e4dec4c63d..674144fde12 100644 --- a/codegen/sdk-codegen/aws-models/lambda.json +++ b/codegen/sdk-codegen/aws-models/lambda.json @@ -84,9 +84,6 @@ { "target": "com.amazonaws.lambda#DeleteProvisionedConcurrencyConfig" }, - { - "target": "com.amazonaws.lambda#DeleteResourcePolicy" - }, { "target": "com.amazonaws.lambda#GetAccountSettings" }, @@ -135,12 +132,6 @@ { "target": "com.amazonaws.lambda#GetProvisionedConcurrencyConfig" }, - { - "target": "com.amazonaws.lambda#GetPublicAccessBlockConfig" - }, - { - "target": "com.amazonaws.lambda#GetResourcePolicy" - }, { "target": "com.amazonaws.lambda#GetRuntimeManagementConfig" }, @@ -210,12 +201,6 @@ { "target": "com.amazonaws.lambda#PutProvisionedConcurrencyConfig" }, - { - "target": "com.amazonaws.lambda#PutPublicAccessBlockConfig" - }, - { - "target": "com.amazonaws.lambda#PutResourcePolicy" - }, { "target": "com.amazonaws.lambda#PutRuntimeManagementConfig" }, @@ -1771,9 +1756,6 @@ { "target": "com.amazonaws.lambda#PreconditionFailedException" }, - { - "target": "com.amazonaws.lambda#PublicPolicyException" - }, { "target": "com.amazonaws.lambda#ResourceConflictException" }, @@ -1788,7 +1770,7 @@ } ], "traits": { - "smithy.api#documentation": "

Grants a principal \n permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict\n access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name\n (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies\n to version $LATEST.

\n

To grant permission to another account, specify the account ID as the Principal. To grant\n permission to an organization defined in Organizations, specify the organization ID as the\n PrincipalOrgID. For Amazon Web Servicesservices, the principal is a domain-style identifier that\n the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the SourceArn. If\n you grant permission to a service principal without specifying the source, other accounts could potentially\n configure resources in their account to invoke your Lambda function.

\n

This operation adds a statement to a resource-based permissions policy for the function. For more information\n about function policies, see Using resource-based policies for Lambda.

", + "smithy.api#documentation": "

Grants a principal \n permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict\n access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name\n (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies\n to version $LATEST.

\n

To grant permission to another account, specify the account ID as the Principal. To grant\n permission to an organization defined in Organizations, specify the organization ID as the\n PrincipalOrgID. For Amazon Web Services services, the principal is a domain-style identifier that\n the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as the SourceArn. If\n you grant permission to a service principal without specifying the source, other accounts could potentially\n configure resources in their account to invoke your Lambda function.

\n

This operation adds a statement to a resource-based permissions policy for the function. For more information\n about function policies, see Using resource-based policies for Lambda.

", "smithy.api#examples": [ { "title": "To grant Amazon S3 permission to invoke a function", @@ -1854,20 +1836,20 @@ "Principal": { "target": "com.amazonaws.lambda#Principal", "traits": { - "smithy.api#documentation": "

The Amazon Web Servicesservice, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a\n service, use SourceArn or SourceAccount to limit who can invoke the function through\n that service.

", + "smithy.api#documentation": "

The Amazon Web Services service, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a\n service, use SourceArn or SourceAccount to limit who can invoke the function through\n that service.

", "smithy.api#required": {} } }, "SourceArn": { "target": "com.amazonaws.lambda#Arn", "traits": { - "smithy.api#documentation": "

For Amazon Web Servicesservices, the ARN of the Amazon Web Services resource that invokes the function. For\n example, an Amazon S3 bucket or Amazon SNS topic.

\n

Note that Lambda configures the comparison using the StringLike operator.

" + "smithy.api#documentation": "

For Amazon Web Services services, the ARN of the Amazon Web Services resource that invokes the function. For\n example, an Amazon S3 bucket or Amazon SNS topic.

\n

Note that Lambda configures the comparison using the StringLike operator.

" } }, "SourceAccount": { "target": "com.amazonaws.lambda#SourceOwner", "traits": { - "smithy.api#documentation": "

For Amazon Web Servicesservice, the ID of the Amazon Web Services account that owns the resource. Use this\n together with SourceArn to ensure that the specified account owns the resource. It is possible for an\n Amazon S3 bucket to be deleted by its owner and recreated by another account.

" + "smithy.api#documentation": "

For Amazon Web Services service, the ID of the Amazon Web Services account that owns the resource. Use this\n together with SourceArn to ensure that the specified account owns the resource. It is possible for an\n Amazon S3 bucket to be deleted by its owner and recreated by another account.

" } }, "EventSourceToken": { @@ -2836,7 +2818,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The\n deployment package is a .zip file archive or container image that contains your function code. The execution role\n grants the function permission to use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for log\n streaming and X-Ray for request tracing.

\n

If the deployment package is a container\n image, then you set the package type to Image. For a container image, the code property\n must include the URI of a container image in the Amazon ECR registry. You do not need to specify the\n handler and runtime properties.

\n

If the deployment package is a .zip file archive, then\n you set the package type to Zip. For a .zip file archive, the code property specifies the location of\n the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must\n be compatible with the target instruction set architecture of the function (x86-64 or\n arm64). If you do not specify the architecture, then the default value is\n x86-64.

\n

When you create a function, Lambda provisions an instance of the function and its supporting\n resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't\n invoke or modify the function. The State, StateReason, and StateReasonCode\n fields in the response from GetFunctionConfiguration indicate when the function is ready to\n invoke. For more information, see Lambda function states.

\n

A function has an unpublished version, and can have published versions and aliases. The unpublished version\n changes when you update your function's code and configuration. A published version is a snapshot of your function\n code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be\n changed to map to a different version. Use the Publish parameter to create version 1 of\n your function from its initial configuration.

\n

The other parameters let you configure version-specific and function-level settings. You can modify\n version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply\n to both the unpublished and published versions of the function, and include tags (TagResource)\n and per-function concurrency limits (PutFunctionConcurrency).

\n

You can use code signing if your deployment package is a .zip file archive. To enable code signing for this\n function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with\n UpdateFunctionCode, Lambda checks that the code package has a valid signature from\n a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted\n publishers for this function.

\n

If another Amazon Web Services account or an Amazon Web Servicesservice invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.

\n

To invoke your function directly, use Invoke. To invoke your function in response to events\n in other Amazon Web Servicesservices, create an event source mapping (CreateEventSourceMapping),\n or configure a function trigger in the other service. For more information, see Invoking Lambda\n functions.

", + "smithy.api#documentation": "

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The\n deployment package is a .zip file archive or container image that contains your function code. The execution role\n grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log\n streaming and X-Ray for request tracing.

\n

If the deployment package is a container\n image, then you set the package type to Image. For a container image, the code property\n must include the URI of a container image in the Amazon ECR registry. You do not need to specify the\n handler and runtime properties.

\n

If the deployment package is a .zip file archive, then\n you set the package type to Zip. For a .zip file archive, the code property specifies the location of\n the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must\n be compatible with the target instruction set architecture of the function (x86-64 or\n arm64). If you do not specify the architecture, then the default value is\n x86-64.

\n

When you create a function, Lambda provisions an instance of the function and its supporting\n resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't\n invoke or modify the function. The State, StateReason, and StateReasonCode\n fields in the response from GetFunctionConfiguration indicate when the function is ready to\n invoke. For more information, see Lambda function states.

\n

A function has an unpublished version, and can have published versions and aliases. The unpublished version\n changes when you update your function's code and configuration. A published version is a snapshot of your function\n code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be\n changed to map to a different version. Use the Publish parameter to create version 1 of\n your function from its initial configuration.

\n

The other parameters let you configure version-specific and function-level settings. You can modify\n version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply\n to both the unpublished and published versions of the function, and include tags (TagResource)\n and per-function concurrency limits (PutFunctionConcurrency).

\n

You can use code signing if your deployment package is a .zip file archive. To enable code signing for this\n function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with\n UpdateFunctionCode, Lambda checks that the code package has a valid signature from\n a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted\n publishers for this function.

\n

If another Amazon Web Services account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.

\n

To invoke your function directly, use Invoke. To invoke your function in response to events\n in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping),\n or configure a function trigger in the other service. For more information, see Invoking Lambda\n functions.

", "smithy.api#examples": [ { "title": "To create a function", @@ -3409,7 +3391,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter.\n Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit\n permissions for DeleteAlias.

\n

To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Servicesservices and resources that invoke your function\n directly, delete the trigger in the service where you originally configured it.

", + "smithy.api#documentation": "

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter.\n Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit\n permissions for DeleteAlias.

\n

To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function\n directly, delete the trigger in the service where you originally configured it.

", "smithy.api#examples": [ { "title": "To delete a version of a Lambda function", @@ -3811,66 +3793,6 @@ "smithy.api#input": {} } }, - "com.amazonaws.lambda#DeleteResourcePolicy": { - "type": "operation", - "input": { - "target": "com.amazonaws.lambda#DeleteResourcePolicyRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ - { - "target": "com.amazonaws.lambda#InvalidParameterValueException" - }, - { - "target": "com.amazonaws.lambda#PreconditionFailedException" - }, - { - "target": "com.amazonaws.lambda#ResourceConflictException" - }, - { - "target": "com.amazonaws.lambda#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.lambda#ServiceException" - }, - { - "target": "com.amazonaws.lambda#TooManyRequestsException" - } - ], - "traits": { - "smithy.api#documentation": "\n

The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be \n available in all Amazon Web Services Regions until September 30, 2024.

\n
\n

Deletes a resource-based policy from a function.

", - "smithy.api#http": { - "method": "DELETE", - "uri": "/2024-09-16/resource-policy/{ResourceArn}", - "code": 204 - } - } - }, - "com.amazonaws.lambda#DeleteResourcePolicyRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.lambda#PolicyResourceArn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to delete the policy from. You can use either a qualified or an unqualified ARN, \n but the value you specify must be a complete ARN and wildcard characters are not accepted.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "RevisionId": { - "target": "com.amazonaws.lambda#RevisionId", - "traits": { - "smithy.api#documentation": "

Delete the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached \n to your function, use the GetResourcePolicy action.

", - "smithy.api#httpQuery": "RevisionId" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, "com.amazonaws.lambda#Description": { "type": "string", "traits": { @@ -6639,134 +6561,6 @@ "smithy.api#output": {} } }, - "com.amazonaws.lambda#GetPublicAccessBlockConfig": { - "type": "operation", - "input": { - "target": "com.amazonaws.lambda#GetPublicAccessBlockConfigRequest" - }, - "output": { - "target": "com.amazonaws.lambda#GetPublicAccessBlockConfigResponse" - }, - "errors": [ - { - "target": "com.amazonaws.lambda#InvalidParameterValueException" - }, - { - "target": "com.amazonaws.lambda#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.lambda#ServiceException" - }, - { - "target": "com.amazonaws.lambda#TooManyRequestsException" - } - ], - "traits": { - "smithy.api#documentation": "\n

The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be \n available in all Amazon Web Services Regions until September 30, 2024.

\n
\n

Retrieve the public-access settings for a function.

", - "smithy.api#http": { - "method": "GET", - "uri": "/2024-09-16/public-access-block/{ResourceArn}", - "code": 200 - } - } - }, - "com.amazonaws.lambda#GetPublicAccessBlockConfigRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.lambda#PublicAccessBlockResourceArn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to retrieve public-access settings for.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.lambda#GetPublicAccessBlockConfigResponse": { - "type": "structure", - "members": { - "PublicAccessBlockConfig": { - "target": "com.amazonaws.lambda#PublicAccessBlockConfig", - "traits": { - "smithy.api#documentation": "

The public-access settings configured for the function you specified

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.lambda#GetResourcePolicy": { - "type": "operation", - "input": { - "target": "com.amazonaws.lambda#GetResourcePolicyRequest" - }, - "output": { - "target": "com.amazonaws.lambda#GetResourcePolicyResponse" - }, - "errors": [ - { - "target": "com.amazonaws.lambda#InvalidParameterValueException" - }, - { - "target": "com.amazonaws.lambda#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.lambda#ServiceException" - }, - { - "target": "com.amazonaws.lambda#TooManyRequestsException" - } - ], - "traits": { - "smithy.api#documentation": "\n

The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be \n available in all Amazon Web Services Regions until September 30, 2024.

\n
\n

Retrieves the resource-based policy attached to a function.

", - "smithy.api#http": { - "method": "GET", - "uri": "/2024-09-16/resource-policy/{ResourceArn}", - "code": 200 - } - } - }, - "com.amazonaws.lambda#GetResourcePolicyRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.lambda#PolicyResourceArn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to retrieve the policy for. You can use either a qualified or an unqualified ARN, \n but the value you specify must be a complete ARN and wildcard characters are not accepted.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.lambda#GetResourcePolicyResponse": { - "type": "structure", - "members": { - "Policy": { - "target": "com.amazonaws.lambda#ResourcePolicy", - "traits": { - "smithy.api#documentation": "

The resource-based policy attached to the function you specified.

" - } - }, - "RevisionId": { - "target": "com.amazonaws.lambda#RevisionId", - "traits": { - "smithy.api#documentation": "

The revision ID of the policy.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, "com.amazonaws.lambda#GetRuntimeManagementConfig": { "type": "operation", "input": { @@ -9326,7 +9120,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a function, event source mapping, or code signing configuration's tags. You can\n also view funciton tags with GetFunction.

", + "smithy.api#documentation": "

Returns a function, event source mapping, or code signing configuration's tags. You can\n also view function tags with GetFunction.

", "smithy.api#examples": [ { "title": "To retrieve the list of tags for a Lambda function", @@ -9891,16 +9685,6 @@ "smithy.api#httpError": 400 } }, - "com.amazonaws.lambda#PolicyResourceArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 256 - }, - "smithy.api#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-_])+)?$" - } - }, "com.amazonaws.lambda#PositiveInteger": { "type": "integer", "traits": { @@ -10042,55 +9826,6 @@ } } }, - "com.amazonaws.lambda#PublicAccessBlockConfig": { - "type": "structure", - "members": { - "BlockPublicPolicy": { - "target": "com.amazonaws.lambda#NullableBoolean", - "traits": { - "smithy.api#documentation": "

To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to false.

" - } - }, - "RestrictPublicResource": { - "target": "com.amazonaws.lambda#NullableBoolean", - "traits": { - "smithy.api#documentation": "

To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To \n allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

" - } - } - }, - "traits": { - "smithy.api#documentation": "

An object that defines the public-access settings for a function.

" - } - }, - "com.amazonaws.lambda#PublicAccessBlockResourceArn": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 0, - "max": 170 - }, - "smithy.api#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-_]+$" - } - }, - "com.amazonaws.lambda#PublicPolicyException": { - "type": "structure", - "members": { - "Type": { - "target": "com.amazonaws.lambda#String", - "traits": { - "smithy.api#documentation": "

The exception type.

" - } - }, - "Message": { - "target": "com.amazonaws.lambda#String" - } - }, - "traits": { - "smithy.api#documentation": "

Lambda prevented your policy from being created because it would grant public access to your function. If you intended to \n create a public policy, use the PutPublicAccessBlockConfig API action to configure your function's public-access settings \n to allow public policies.

", - "smithy.api#error": "client", - "smithy.api#httpError": 400 - } - }, "com.amazonaws.lambda#PublishLayerVersion": { "type": "operation", "input": { @@ -10807,169 +10542,6 @@ "smithy.api#output": {} } }, - "com.amazonaws.lambda#PutPublicAccessBlockConfig": { - "type": "operation", - "input": { - "target": "com.amazonaws.lambda#PutPublicAccessBlockConfigRequest" - }, - "output": { - "target": "com.amazonaws.lambda#PutPublicAccessBlockConfigResponse" - }, - "errors": [ - { - "target": "com.amazonaws.lambda#InvalidParameterValueException" - }, - { - "target": "com.amazonaws.lambda#ResourceConflictException" - }, - { - "target": "com.amazonaws.lambda#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.lambda#ServiceException" - }, - { - "target": "com.amazonaws.lambda#TooManyRequestsException" - } - ], - "traits": { - "smithy.api#documentation": "\n

The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be \n available in all Amazon Web Services Regions until September 30, 2024.

\n
\n

Configure your function's public-access settings.

\n

To control public access to a Lambda function, you can choose whether to allow the creation of \n resource-based policies that \n allow public access to that function. You can also block public access to a function, even if it has an existing resource-based \n policy that allows it.

", - "smithy.api#http": { - "method": "PUT", - "uri": "/2024-09-16/public-access-block/{ResourceArn}", - "code": 200 - } - } - }, - "com.amazonaws.lambda#PutPublicAccessBlockConfigRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.lambda#PublicAccessBlockResourceArn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings \n are applied at the function level, so you can't apply different settings to function versions or aliases.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "PublicAccessBlockConfig": { - "target": "com.amazonaws.lambda#PublicAccessBlockConfig", - "traits": { - "smithy.api#documentation": "

An object defining the public-access settings you want to apply.

\n

To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy \n to false.

\n

To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To \n allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

\n

The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.lambda#PutPublicAccessBlockConfigResponse": { - "type": "structure", - "members": { - "PublicAccessBlockConfig": { - "target": "com.amazonaws.lambda#PublicAccessBlockConfig", - "traits": { - "smithy.api#documentation": "

The public-access settings Lambda applied to your function.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.lambda#PutResourcePolicy": { - "type": "operation", - "input": { - "target": "com.amazonaws.lambda#PutResourcePolicyRequest" - }, - "output": { - "target": "com.amazonaws.lambda#PutResourcePolicyResponse" - }, - "errors": [ - { - "target": "com.amazonaws.lambda#InvalidParameterValueException" - }, - { - "target": "com.amazonaws.lambda#PolicyLengthExceededException" - }, - { - "target": "com.amazonaws.lambda#PreconditionFailedException" - }, - { - "target": "com.amazonaws.lambda#PublicPolicyException" - }, - { - "target": "com.amazonaws.lambda#ResourceConflictException" - }, - { - "target": "com.amazonaws.lambda#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.lambda#ServiceException" - }, - { - "target": "com.amazonaws.lambda#TooManyRequestsException" - } - ], - "traits": { - "smithy.api#documentation": "\n

The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be \n available in all Amazon Web Services Regions until September 30, 2024.

\n
\n

Adds a resource-based policy \n to a function. You can use resource-based policies to grant access to other \n Amazon Web Services accounts, \n organizations, or \n services. Resource-based policies \n apply to a single function, version, or alias.

\n \n

Adding a resource-based policy using this API action replaces any existing policy you've previously created. This means that if \n you've previously added resource-based permissions to a function using the AddPermission action, those \n permissions will be overwritten by your new policy.

\n
", - "smithy.api#http": { - "method": "PUT", - "uri": "/2024-09-16/resource-policy/{ResourceArn}", - "code": 200 - } - } - }, - "com.amazonaws.lambda#PutResourcePolicyRequest": { - "type": "structure", - "members": { - "ResourceArn": { - "target": "com.amazonaws.lambda#PolicyResourceArn", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, \n but the value you specify must be a complete ARN and wildcard characters are not accepted.

", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "Policy": { - "target": "com.amazonaws.lambda#ResourcePolicy", - "traits": { - "smithy.api#documentation": "

The JSON resource-based policy you want to add to your function.

\n

To learn more about creating resource-based policies for controlling access to \n Lambda, see Working with resource-based IAM policies in Lambda in the \n Lambda Developer Guide.

", - "smithy.api#required": {} - } - }, - "RevisionId": { - "target": "com.amazonaws.lambda#RevisionId", - "traits": { - "smithy.api#documentation": "

Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached \n to your function, use the GetResourcePolicy action.

" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.lambda#PutResourcePolicyResponse": { - "type": "structure", - "members": { - "Policy": { - "target": "com.amazonaws.lambda#ResourcePolicy", - "traits": { - "smithy.api#documentation": "

The policy Lambda added to your function.

" - } - }, - "RevisionId": { - "target": "com.amazonaws.lambda#RevisionId", - "traits": { - "smithy.api#documentation": "

The revision ID of the policy Lambda added to your function.

" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, "com.amazonaws.lambda#PutRuntimeManagementConfig": { "type": "operation", "input": { @@ -11239,9 +10811,6 @@ { "target": "com.amazonaws.lambda#PreconditionFailedException" }, - { - "target": "com.amazonaws.lambda#PublicPolicyException" - }, { "target": "com.amazonaws.lambda#ResourceNotFoundException" }, @@ -11253,7 +10822,7 @@ } ], "traits": { - "smithy.api#documentation": "

Revokes function-use permission from an Amazon Web Servicesservice or another Amazon Web Services account. You\n can get the ID of the statement from the output of GetPolicy.

", + "smithy.api#documentation": "

Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You\n can get the ID of the statement from the output of GetPolicy.

", "smithy.api#examples": [ { "title": "To remove a Lambda function's permissions", @@ -11416,16 +10985,6 @@ "smithy.api#httpError": 502 } }, - "com.amazonaws.lambda#ResourcePolicy": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 20480 - }, - "smithy.api#pattern": "^[\\s\\S]+$" - } - }, "com.amazonaws.lambda#ResponseStreamingInvocationType": { "type": "enum", "members": { @@ -11443,16 +11002,6 @@ } } }, - "com.amazonaws.lambda#RevisionId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 36, - "max": 36 - }, - "smithy.api#pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" - } - }, "com.amazonaws.lambda#RoleArn": { "type": "string", "traits": { @@ -13227,7 +12776,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modify the version-specific settings of a Lambda function.

\n

When you update a function, Lambda provisions an instance of the function and its supporting\n resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify\n the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason,\n and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration\n indicate when the update is complete and the function is processing events with the new configuration. For more\n information, see Lambda\n function states.

\n

These settings can vary between versions of a function and are locked when you publish a version. You can't\n modify the configuration of a published version, only the unpublished version.

\n

To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions\n to an Amazon Web Services account or Amazon Web Servicesservice, use AddPermission.

", + "smithy.api#documentation": "

Modify the version-specific settings of a Lambda function.

\n

When you update a function, Lambda provisions an instance of the function and its supporting\n resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify\n the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason,\n and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration\n indicate when the update is complete and the function is processing events with the new configuration. For more\n information, see Lambda\n function states.

\n

These settings can vary between versions of a function and are locked when you publish a version. You can't\n modify the configuration of a published version, only the unpublished version.

\n

To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions\n to an Amazon Web Services account or Amazon Web Services service, use AddPermission.

", "smithy.api#examples": [ { "title": "To update a Lambda function's configuration", diff --git a/codegen/sdk-codegen/aws-models/organizations.json b/codegen/sdk-codegen/aws-models/organizations.json index c2b0af0ddb8..9efaec2e810 100644 --- a/codegen/sdk-codegen/aws-models/organizations.json +++ b/codegen/sdk-codegen/aws-models/organizations.json @@ -1902,7 +1902,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches a policy to a root, an organizational unit (OU), or an individual account.\n How the policy affects accounts depends on the type of policy. Refer to the\n Organizations User Guide for information about each policy type:

\n \n

This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.

", + "smithy.api#documentation": "

Attaches a policy to a root, an organizational unit (OU), or an individual account.\n How the policy affects accounts depends on the type of policy. Refer to the\n Organizations User Guide for information about each policy type:

\n \n

This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.

", "smithy.api#examples": [ { "title": "To attach a policy to an account", @@ -3129,7 +3129,7 @@ "Type": { "target": "com.amazonaws.organizations#PolicyType", "traits": { - "smithy.api#documentation": "

The type of policy to create. You can specify one of the following values:

\n ", + "smithy.api#documentation": "

The type of policy to create. You can specify one of the following values:

\n ", "smithy.api#required": {} } }, @@ -3837,7 +3837,7 @@ "PolicyType": { "target": "com.amazonaws.organizations#EffectivePolicyType", "traits": { - "smithy.api#documentation": "

The type of policy that you want information about. You can specify one of the\n following values:

\n ", + "smithy.api#documentation": "

The type of policy that you want information about. You can specify one of the\n following values:

\n ", "smithy.api#required": {} } }, @@ -4478,7 +4478,7 @@ "PolicyType": { "target": "com.amazonaws.organizations#PolicyType", "traits": { - "smithy.api#documentation": "

The policy type that you want to disable in this root. You can specify one of the\n following values:

\n ", + "smithy.api#documentation": "

The policy type that you want to disable in this root. You can specify one of the\n following values:

\n ", "smithy.api#required": {} } } @@ -4630,6 +4630,12 @@ "traits": { "smithy.api#enumValue": "AISERVICES_OPT_OUT_POLICY" } + }, + "CHATBOT_POLICY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CHATBOT_POLICY" + } } } }, @@ -4867,7 +4873,7 @@ "PolicyType": { "target": "com.amazonaws.organizations#PolicyType", "traits": { - "smithy.api#documentation": "

The policy type that you want to enable. You can specify one of the following\n values:

\n ", + "smithy.api#documentation": "

The policy type that you want to enable. You can specify one of the following\n values:

\n ", "smithy.api#required": {} } } @@ -7116,7 +7122,7 @@ "Filter": { "target": "com.amazonaws.organizations#PolicyType", "traits": { - "smithy.api#documentation": "

The type of policy that you want to include in the returned list. You must specify one\n of the following values:

\n ", + "smithy.api#documentation": "

The type of policy that you want to include in the returned list. You must specify one\n of the following values:

\n ", "smithy.api#required": {} } }, @@ -7163,7 +7169,7 @@ "Filter": { "target": "com.amazonaws.organizations#PolicyType", "traits": { - "smithy.api#documentation": "

Specifies the type of policy that you want to include in the response. You must\n specify one of the following values:

\n ", + "smithy.api#documentation": "

Specifies the type of policy that you want to include in the response. You must\n specify one of the following values:

\n ", "smithy.api#required": {} } }, @@ -8107,6 +8113,12 @@ "traits": { "smithy.api#enumValue": "AISERVICES_OPT_OUT_POLICY" } + }, + "CHATBOT_POLICY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CHATBOT_POLICY" + } } } }, diff --git a/codegen/sdk-codegen/aws-models/pcs.json b/codegen/sdk-codegen/aws-models/pcs.json index 9b954eeee93..b823ea8f277 100644 --- a/codegen/sdk-codegen/aws-models/pcs.json +++ b/codegen/sdk-codegen/aws-models/pcs.json @@ -1156,7 +1156,7 @@ "iamInstanceProfileArn": { "target": "com.amazonaws.pcs#InstanceProfileArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have\n pcs:RegisterComputeNodeGroupInstance permissions attached to provision instances\n correctly.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM instance \n profile used to pass an IAM role when launching EC2 instances. The role contained \n in your instance profile must have the pcs:RegisterComputeNodeGroupInstance\n permission. The resource identifier of the ARN must start with \n AWSPCS or it must have /aws-pcs/ in its path.

\n

\n Examples\n

\n ", "smithy.api#required": {} } }, @@ -1642,7 +1642,7 @@ "iamInstanceProfileArn": { "target": "com.amazonaws.pcs#InstanceProfileArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have\n pcs:RegisterComputeNodeGroupInstance permissions attached in order to\n provision instances correctly. The resource identifier of the ARN must start with \n AWSPCS. For example, arn:aws:iam:123456789012:instance-profile/AWSPCSMyComputeNodeInstanceProfile.\n

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM instance \n profile used to pass an IAM role when launching EC2 instances. The role contained \n in your instance profile must have the pcs:RegisterComputeNodeGroupInstance\n permission. The resource identifier of the ARN must start with \n AWSPCS or it must have /aws-pcs/ in its path.

\n

\n Examples\n

\n ", "smithy.api#required": {} } }, @@ -3362,7 +3362,7 @@ "parameterName": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "

Amazon Web Services PCS supports configuration of the following Slurm parameters: \n Prolog\n , \n Epilog\n , and \n SelectTypeParameters\n .

", + "smithy.api#documentation": "

Amazon Web Services PCS supports configuration of the following Slurm parameters:

\n ", "smithy.api#required": {} } }, @@ -3722,7 +3722,7 @@ "iamInstanceProfileArn": { "target": "com.amazonaws.pcs#InstanceProfileArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the \n IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have\n pcs:RegisterComputeNodeGroupInstance permissions attached to provision instances\n correctly.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM instance \n profile used to pass an IAM role when launching EC2 instances. The role contained \n in your instance profile must have the pcs:RegisterComputeNodeGroupInstance\n permission. The resource identifier of the ARN must start with \n AWSPCS or it must have /aws-pcs/ in its path.

\n

\n Examples\n

\n " } }, "slurmConfiguration": { diff --git a/codegen/sdk-codegen/aws-models/rds-data.json b/codegen/sdk-codegen/aws-models/rds-data.json index 16cdd4cdd46..4f627530b2d 100644 --- a/codegen/sdk-codegen/aws-models/rds-data.json +++ b/codegen/sdk-codegen/aws-models/rds-data.json @@ -267,7 +267,7 @@ } ], "traits": { - "smithy.api#documentation": "

Starts a SQL transaction.

\n \n

A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24\n hours.

\n

A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's\n committed, it's rolled back automatically.

\n

DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate\n ExecuteStatement call with continueAfterTimeout enabled.

\n
", + "smithy.api#documentation": "

Starts a SQL transaction.

\n \n

A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24\n hours.

\n

A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's\n committed, it's rolled back automatically.

\n

For Aurora MySQL, DDL statements inside a transaction cause an implicit commit. We recommend that you run each MySQL DDL statement in a separate\n ExecuteStatement call with continueAfterTimeout enabled.

\n
", "smithy.api#http": { "code": 200, "method": "POST", @@ -661,7 +661,7 @@ "message": "The ExecuteSql API is deprecated, please use the ExecuteStatement API.", "since": "2019-03-21" }, - "smithy.api#documentation": "

Runs one or more SQL statements.

\n \n

This operation isn't supported for Aurora PostgreSQL Serverless v2 and provisioned DB clusters, and for Aurora Serverless v1 DB clusters, \n the operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

\n
", + "smithy.api#documentation": "

Runs one or more SQL statements.

\n \n

This operation isn't supported for Aurora Serverless v2 and provisioned DB clusters.\n For Aurora Serverless v1 DB clusters, the operation is deprecated.\n Use the BatchExecuteStatement or ExecuteStatement operation.

\n
", "smithy.api#http": { "code": 200, "method": "POST", @@ -1115,7 +1115,7 @@ }, "aws.protocols#restJson1": {}, "smithy.api#cors": {}, - "smithy.api#documentation": "RDS Data API\n

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these\n statements, you use the RDS Data API (Data API).

\n

Data API is available with the following types of Aurora databases:

\n \n

For more information about the Data API, see\n Using RDS Data API\n in the Amazon Aurora User Guide.

", + "smithy.api#documentation": "RDS Data API\n

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these\n statements, you use the RDS Data API (Data API).

\n

Data API is available with the following types of Aurora databases:

\n \n

For more information about the Data API, see\n Using RDS Data API\n in the Amazon Aurora User Guide.

", "smithy.api#title": "AWS RDS DataService", "smithy.rules#endpointRuleSet": { "version": "1.0", diff --git a/codegen/sdk-codegen/aws-models/sagemaker.json b/codegen/sdk-codegen/aws-models/sagemaker.json index 274f94fe93d..25883e7aeee 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker.json +++ b/codegen/sdk-codegen/aws-models/sagemaker.json @@ -9913,6 +9913,12 @@ "smithy.api#documentation": "

The entity that creates and manages the required security groups for inter-app\n communication in VPCOnly mode. Required when\n CreateDomain.AppNetworkAccessType is VPCOnly and\n DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is\n provided. If setting up the domain for use with RStudio, this value must be set to\n Service.

" } }, + "TagPropagation": { + "target": "com.amazonaws.sagemaker#TagPropagation", + "traits": { + "smithy.api#documentation": "

Indicates whether custom tag propagation is supported for the domain. Defaults to DISABLED.

" + } + }, "DefaultSpaceSettings": { "target": "com.amazonaws.sagemaker#DefaultSpaceSettings", "traits": { @@ -19338,6 +19344,12 @@ "smithy.api#documentation": "

The entity that creates and manages the required security groups for inter-app\n communication in VPCOnly mode. Required when\n CreateDomain.AppNetworkAccessType is VPCOnly and\n DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is\n provided.

" } }, + "TagPropagation": { + "target": "com.amazonaws.sagemaker#TagPropagation", + "traits": { + "smithy.api#documentation": "

Indicates whether custom tag propagation is supported for the domain.

" + } + }, "DefaultSpaceSettings": { "target": "com.amazonaws.sagemaker#DefaultSpaceSettings", "traits": { @@ -62994,6 +63006,23 @@ } } }, + "com.amazonaws.sagemaker#TagPropagation": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.sagemaker#TagValue": { "type": "string", "traits": { @@ -68150,6 +68179,12 @@ "traits": { "smithy.api#documentation": "

Specifies the VPC used for non-EFS traffic.

\n \n

This configuration can only be modified if there are no apps in the\n InService, Pending, or Deleting state. The\n configuration cannot be updated if\n DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is already\n set or DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is\n provided as part of the same request.

" } + }, + "TagPropagation": { + "target": "com.amazonaws.sagemaker#TagPropagation", + "traits": { + "smithy.api#documentation": "

Indicates whether custom tag propagation is supported for the domain. Defaults to DISABLED.

" + } } }, "traits": {