From 1bd19a389895a46a53b1cbe8bf41c0d7a2fdc5dc Mon Sep 17 00:00:00 2001 From: sagemaker-bot Date: Fri, 14 Nov 2025 10:10:19 +0000 Subject: [PATCH] Daily Sync with Botocore v1.40.73 on 2025/11/14 --- sample/sagemaker/2017-07-24/service-2.json | 110 +++++++++++++++++- .../main/code_injection/shape_dag.py | 43 ++++++- src/sagemaker_core/main/resources.py | 21 +++- src/sagemaker_core/main/shapes.py | 34 ++++++ 4 files changed, 205 insertions(+), 3 deletions(-) diff --git a/sample/sagemaker/2017-07-24/service-2.json b/sample/sagemaker/2017-07-24/service-2.json index 4461e9a..9297b83 100644 --- a/sample/sagemaker/2017-07-24/service-2.json +++ b/sample/sagemaker/2017-07-24/service-2.json @@ -5654,6 +5654,12 @@ "Line" ] }, + "AssignedGroupPatternsList":{ + "type":"list", + "member":{"shape":"GroupNamePattern"}, + "max":10, + "min":0 + }, "AssociateTrialComponentRequest":{ "type":"structure", "required":[ @@ -6815,6 +6821,20 @@ "box":true, "min":0 }, + "AvailableUpgrade":{ + "type":"structure", + "members":{ + "Version":{ + "shape":"MajorMinorVersion", + "documentation":"

The semantic version number of the available upgrade for the SageMaker Partner AI App.

" + }, + "ReleaseNotes":{ + "shape":"ReleaseNotesList", + "documentation":"

A list of release notes describing the changes and improvements included in the available upgrade version.

" + } + }, + "documentation":"

Contains information about an available upgrade for a SageMaker Partner AI App, including the version number and release notes.

" + }, "AwsManagedHumanLoopRequestSource":{ "type":"string", "enum":[ @@ -12665,6 +12685,11 @@ "documentation":"

When set to TRUE, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.

", "box":true }, + "EnableAutoMinorVersionUpgrade":{ + "shape":"Boolean", + "documentation":"

When set to TRUE, the SageMaker Partner AI App is automatically upgraded to the latest minor version during the next scheduled maintenance window, if one is available. Default is FALSE.

", + "box":true + }, "ClientToken":{ "shape":"ClientToken", "documentation":"

A unique token that guarantees that the call to this API is idempotent.

", @@ -18717,6 +18742,11 @@ "Arn":{ "shape":"PartnerAppArn", "documentation":"

The ARN of the SageMaker Partner AI App to describe.

" + }, + "IncludeAvailableUpgrade":{ + "shape":"Boolean", + "documentation":"

When set to TRUE, the response includes available upgrade information for the SageMaker Partner AI App. Default is FALSE.

", + "box":true } } }, @@ -18787,6 +18817,19 @@ "Error":{ "shape":"ErrorInfo", "documentation":"

This is an error field object that contains the error code and the reason for an operation failure.

" + }, + "EnableAutoMinorVersionUpgrade":{ + "shape":"Boolean", + "documentation":"

Indicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows.

", + "box":true + }, + "CurrentVersionEolDate":{ + "shape":"Timestamp", + "documentation":"

The end-of-life date for the current version of the SageMaker Partner AI App.

" + }, + "AvailableUpgrade":{ + "shape":"AvailableUpgrade", + "documentation":"

A map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available.

" } } }, @@ -22995,6 +23038,18 @@ "min":1, "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+" }, + "GroupNamePattern":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\w+=,.@*-]+" + }, + "GroupPatternsList":{ + "type":"list", + "member":{"shape":"GroupNamePattern"}, + "max":10, + "min":1 + }, "GroupingAttributeName":{ "type":"string", "max":256, @@ -30870,6 +30925,12 @@ "min":1, "pattern":"[a-zA-Z]+ ?\\d+\\.\\d+(\\.\\d+)?" }, + "MajorMinorVersion":{ + "type":"string", + "max":64, + "min":0, + "pattern":"\\d+\\.\\d+" + }, "ManagedInstanceScalingMaxInstanceCount":{ "type":"integer", "box":true, @@ -32320,7 +32381,7 @@ "type":"string", "max":2048, "min":1, - "pattern":"arn:arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package/[\\S]{1,2048}" + "pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package/[\\S]{1,2048}" }, "ModelPackageArnList":{ "type":"list", @@ -34907,6 +34968,14 @@ "Arguments":{ "shape":"PartnerAppArguments", "documentation":"

This is a map of required inputs for a SageMaker Partner AI App. Based on the application type, the map is populated with a key and value pair that is specific to the user and application.

" + }, + "AssignedGroupPatterns":{ + "shape":"AssignedGroupPatternsList", + "documentation":"

A list of Amazon Web Services IAM Identity Center group patterns that can access the SageMaker Partner AI App. Group names support wildcard matching using *. An empty list indicates the app will not use Identity Center group features. All groups specified in RoleGroupAssignments must match patterns in this list.

" + }, + "RoleGroupAssignments":{ + "shape":"RoleGroupAssignmentsList", + "documentation":"

A map of in-app roles to Amazon Web Services IAM Identity Center group patterns. Groups assigned to specific roles receive those permissions, while groups in AssignedGroupPatterns but not in this map receive default in-app role depending on app type. Group patterns support wildcard matching using *. Currently supported by Fiddler version 1.3 and later with roles: ORG_MEMBER (default) and ORG_ADMIN.

" } }, "documentation":"

Configuration settings for the SageMaker Partner AI App.

" @@ -38096,6 +38165,12 @@ "min":1, "pattern":".*" }, + "ReleaseNotesList":{ + "type":"list", + "member":{"shape":"String1024"}, + "max":10, + "min":0 + }, "RemoteDebugConfig":{ "type":"structure", "members":{ @@ -38749,6 +38824,30 @@ "min":20, "pattern":"arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" }, + "RoleGroupAssignment":{ + "type":"structure", + "required":[ + "RoleName", + "GroupPatterns" + ], + "members":{ + "RoleName":{ + "shape":"NonEmptyString256", + "documentation":"

The name of the in-app role within the SageMaker Partner AI App. The specific roles available depend on the app type and version.

" + }, + "GroupPatterns":{ + "shape":"GroupPatternsList", + "documentation":"

A list of AWS IAM Identity Center group patterns that should be assigned to the specified role. Group patterns support wildcard matching using *.

" + } + }, + "documentation":"

Defines the mapping between an in-app role and the AWS IAM Identity Center group patterns that should be assigned to that role within the SageMaker Partner AI App.

" + }, + "RoleGroupAssignmentsList":{ + "type":"list", + "member":{"shape":"RoleGroupAssignment"}, + "max":10, + "min":0 + }, "RollingDeploymentPolicy":{ "type":"structure", "required":["MaximumBatchSize"], @@ -44938,6 +45037,15 @@ "documentation":"

When set to TRUE, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.

", "box":true }, + "EnableAutoMinorVersionUpgrade":{ + "shape":"Boolean", + "documentation":"

When set to TRUE, the SageMaker Partner AI App is automatically upgraded to the latest minor version during the next scheduled maintenance window, if one is available.

", + "box":true + }, + "AppVersion":{ + "shape":"MajorMinorVersion", + "documentation":"

The semantic version to upgrade the SageMaker Partner AI App to. Must be the same semantic version returned in the AvailableUpgrade field from DescribePartnerApp. Version skipping and downgrades are not supported.

" + }, "ClientToken":{ "shape":"ClientToken", "documentation":"

A unique token that guarantees that the call to this API is idempotent.

", diff --git a/src/sagemaker_core/main/code_injection/shape_dag.py b/src/sagemaker_core/main/code_injection/shape_dag.py index 89c1f66..aaa5e94 100644 --- a/src/sagemaker_core/main/code_injection/shape_dag.py +++ b/src/sagemaker_core/main/code_injection/shape_dag.py @@ -339,6 +339,11 @@ ], "type": "structure", }, + "AssignedGroupPatternsList": { + "member_shape": "GroupNamePattern", + "member_type": "string", + "type": "list", + }, "AssociateTrialComponentRequest": { "members": [ {"name": "TrialComponentName", "shape": "ExperimentEntityName", "type": "string"}, @@ -802,6 +807,13 @@ "members": [{"name": "Mode", "shape": "AutotuneMode", "type": "string"}], "type": "structure", }, + "AvailableUpgrade": { + "members": [ + {"name": "Version", "shape": "MajorMinorVersion", "type": "string"}, + {"name": "ReleaseNotes", "shape": "ReleaseNotesList", "type": "list"}, + ], + "type": "structure", + }, "BatchAddClusterNodesError": { "members": [ {"name": "InstanceGroupName", "shape": "InstanceGroupName", "type": "string"}, @@ -3233,6 +3245,7 @@ {"name": "ApplicationConfig", "shape": "PartnerAppConfig", "type": "structure"}, {"name": "AuthType", "shape": "PartnerAppAuthType", "type": "string"}, {"name": "EnableIamSessionBasedIdentity", "shape": "Boolean", "type": "boolean"}, + {"name": "EnableAutoMinorVersionUpgrade", "shape": "Boolean", "type": "boolean"}, {"name": "ClientToken", "shape": "ClientToken", "type": "string"}, {"name": "Tags", "shape": "TagList", "type": "list"}, ], @@ -5987,7 +6000,10 @@ "type": "structure", }, "DescribePartnerAppRequest": { - "members": [{"name": "Arn", "shape": "PartnerAppArn", "type": "string"}], + "members": [ + {"name": "Arn", "shape": "PartnerAppArn", "type": "string"}, + {"name": "IncludeAvailableUpgrade", "shape": "Boolean", "type": "boolean"}, + ], "type": "structure", }, "DescribePartnerAppResponse": { @@ -6012,6 +6028,9 @@ {"name": "AuthType", "shape": "PartnerAppAuthType", "type": "string"}, {"name": "EnableIamSessionBasedIdentity", "shape": "Boolean", "type": "boolean"}, {"name": "Error", "shape": "ErrorInfo", "type": "structure"}, + {"name": "EnableAutoMinorVersionUpgrade", "shape": "Boolean", "type": "boolean"}, + {"name": "CurrentVersionEolDate", "shape": "Timestamp", "type": "timestamp"}, + {"name": "AvailableUpgrade", "shape": "AvailableUpgrade", "type": "structure"}, ], "type": "structure", }, @@ -7647,6 +7666,11 @@ "members": [{"name": "SecretArn", "shape": "SecretArn", "type": "string"}], "type": "structure", }, + "GroupPatternsList": { + "member_shape": "GroupNamePattern", + "member_type": "string", + "type": "list", + }, "GroupingAttributeNames": { "member_shape": "GroupingAttributeName", "member_type": "string", @@ -12624,6 +12648,8 @@ "members": [ {"name": "AdminUsers", "shape": "PartnerAppAdminUserList", "type": "list"}, {"name": "Arguments", "shape": "PartnerAppArguments", "type": "map"}, + {"name": "AssignedGroupPatterns", "shape": "AssignedGroupPatternsList", "type": "list"}, + {"name": "RoleGroupAssignments", "shape": "RoleGroupAssignmentsList", "type": "list"}, ], "type": "structure", }, @@ -13864,6 +13890,7 @@ "members": [{"name": "Arn", "shape": "String256", "type": "string"}], "type": "structure", }, + "ReleaseNotesList": {"member_shape": "String1024", "member_type": "string", "type": "list"}, "RemoteDebugConfig": { "members": [{"name": "EnableRemoteDebug", "shape": "EnableRemoteDebug", "type": "boolean"}], "type": "structure", @@ -14107,6 +14134,18 @@ ], "type": "structure", }, + "RoleGroupAssignment": { + "members": [ + {"name": "RoleName", "shape": "NonEmptyString256", "type": "string"}, + {"name": "GroupPatterns", "shape": "GroupPatternsList", "type": "list"}, + ], + "type": "structure", + }, + "RoleGroupAssignmentsList": { + "member_shape": "RoleGroupAssignment", + "member_type": "structure", + "type": "list", + }, "RollingDeploymentPolicy": { "members": [ {"name": "MaximumBatchSize", "shape": "CapacitySizeConfig", "type": "structure"}, @@ -16469,6 +16508,8 @@ {"name": "Tier", "shape": "NonEmptyString64", "type": "string"}, {"name": "ApplicationConfig", "shape": "PartnerAppConfig", "type": "structure"}, {"name": "EnableIamSessionBasedIdentity", "shape": "Boolean", "type": "boolean"}, + {"name": "EnableAutoMinorVersionUpgrade", "shape": "Boolean", "type": "boolean"}, + {"name": "AppVersion", "shape": "MajorMinorVersion", "type": "string"}, {"name": "ClientToken", "shape": "ClientToken", "type": "string"}, {"name": "Tags", "shape": "TagList", "type": "list"}, ], diff --git a/src/sagemaker_core/main/resources.py b/src/sagemaker_core/main/resources.py index 76e57bf..c5699bc 100644 --- a/src/sagemaker_core/main/resources.py +++ b/src/sagemaker_core/main/resources.py @@ -24016,6 +24016,9 @@ class PartnerApp(Base): auth_type: The authorization type that users use to access the SageMaker Partner AI App. enable_iam_session_based_identity: When set to TRUE, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user. error: This is an error field object that contains the error code and the reason for an operation failure. + enable_auto_minor_version_upgrade: Indicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows. + current_version_eol_date: The end-of-life date for the current version of the SageMaker Partner AI App. + available_upgrade: A map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available. """ @@ -24035,6 +24038,9 @@ class PartnerApp(Base): auth_type: Optional[str] = Unassigned() enable_iam_session_based_identity: Optional[bool] = Unassigned() error: Optional[shapes.ErrorInfo] = Unassigned() + enable_auto_minor_version_upgrade: Optional[bool] = Unassigned() + current_version_eol_date: Optional[datetime.datetime] = Unassigned() + available_upgrade: Optional[shapes.AvailableUpgrade] = Unassigned() def get_name(self) -> str: attributes = vars(self) @@ -24082,6 +24088,7 @@ def create( maintenance_config: Optional[shapes.PartnerAppMaintenanceConfig] = Unassigned(), application_config: Optional[shapes.PartnerAppConfig] = Unassigned(), enable_iam_session_based_identity: Optional[bool] = Unassigned(), + enable_auto_minor_version_upgrade: Optional[bool] = Unassigned(), client_token: Optional[str] = Unassigned(), tags: Optional[List[shapes.Tag]] = Unassigned(), session: Optional[Session] = None, @@ -24100,6 +24107,7 @@ def create( maintenance_config: Maintenance configuration settings for the SageMaker Partner AI App. application_config: Configuration settings for the SageMaker Partner AI App. enable_iam_session_based_identity: When set to TRUE, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user. + enable_auto_minor_version_upgrade: When set to TRUE, the SageMaker Partner AI App is automatically upgraded to the latest minor version during the next scheduled maintenance window, if one is available. Default is FALSE. client_token: A unique token that guarantees that the call to this API is idempotent. tags: Each tag consists of a key and an optional value. Tag keys must be unique per resource. session: Boto3 session. @@ -24140,6 +24148,7 @@ def create( "ApplicationConfig": application_config, "AuthType": auth_type, "EnableIamSessionBasedIdentity": enable_iam_session_based_identity, + "EnableAutoMinorVersionUpgrade": enable_auto_minor_version_upgrade, "ClientToken": client_token, "Tags": tags, } @@ -24164,6 +24173,7 @@ def create( def get( cls, arn: str, + include_available_upgrade: Optional[bool] = Unassigned(), session: Optional[Session] = None, region: Optional[str] = None, ) -> Optional["PartnerApp"]: @@ -24172,6 +24182,7 @@ def get( Parameters: arn: The ARN of the SageMaker Partner AI App to describe. + include_available_upgrade: When set to TRUE, the response includes available upgrade information for the SageMaker Partner AI App. Default is FALSE. session: Boto3 session. region: Region name. @@ -24193,6 +24204,7 @@ def get( operation_input_args = { "Arn": arn, + "IncludeAvailableUpgrade": include_available_upgrade, } # serialize the input request operation_input_args = serialize(operation_input_args) @@ -24213,6 +24225,7 @@ def get( @Base.add_validate_call def refresh( self, + include_available_upgrade: Optional[bool] = Unassigned(), ) -> Optional["PartnerApp"]: """ Refresh a PartnerApp resource @@ -24235,6 +24248,7 @@ def refresh( operation_input_args = { "Arn": self.arn, + "IncludeAvailableUpgrade": include_available_upgrade, } # serialize the input request operation_input_args = serialize(operation_input_args) @@ -24255,6 +24269,8 @@ def update( tier: Optional[str] = Unassigned(), application_config: Optional[shapes.PartnerAppConfig] = Unassigned(), enable_iam_session_based_identity: Optional[bool] = Unassigned(), + enable_auto_minor_version_upgrade: Optional[bool] = Unassigned(), + app_version: Optional[str] = Unassigned(), client_token: Optional[str] = Unassigned(), tags: Optional[List[shapes.Tag]] = Unassigned(), ) -> Optional["PartnerApp"]: @@ -24262,6 +24278,7 @@ def update( Update a PartnerApp resource Parameters: + app_version: The semantic version to upgrade the SageMaker Partner AI App to. Must be the same semantic version returned in the AvailableUpgrade field from DescribePartnerApp. Version skipping and downgrades are not supported. client_token: A unique token that guarantees that the call to this API is idempotent. tags: Each tag consists of a key and an optional value. Tag keys must be unique per resource. @@ -24291,6 +24308,8 @@ def update( "Tier": tier, "ApplicationConfig": application_config, "EnableIamSessionBasedIdentity": enable_iam_session_based_identity, + "EnableAutoMinorVersionUpgrade": enable_auto_minor_version_upgrade, + "AppVersion": app_version, "ClientToken": client_token, "Tags": tags, } @@ -28447,12 +28466,12 @@ def populate_inputs_decorator(create_func): def wrapper(*args, **kwargs): config_schema_for_resource = { "model_artifacts": {"s3_model_artifacts": {"type": "string"}}, - "resource_config": {"volume_kms_key_id": {"type": "string"}}, "role_arn": {"type": "string"}, "output_data_config": { "s3_output_path": {"type": "string"}, "kms_key_id": {"type": "string"}, }, + "resource_config": {"volume_kms_key_id": {"type": "string"}}, "vpc_config": { "security_group_ids": {"type": "array", "items": {"type": "string"}}, "subnets": {"type": "array", "items": {"type": "string"}}, diff --git a/src/sagemaker_core/main/shapes.py b/src/sagemaker_core/main/shapes.py index 37265f6..940396b 100644 --- a/src/sagemaker_core/main/shapes.py +++ b/src/sagemaker_core/main/shapes.py @@ -2460,6 +2460,21 @@ class Autotune(Base): mode: str +class AvailableUpgrade(Base): + """ + AvailableUpgrade + Contains information about an available upgrade for a SageMaker Partner AI App, including the version number and release notes. + + Attributes + ---------------------- + version: The semantic version number of the available upgrade for the SageMaker Partner AI App. + release_notes: A list of release notes describing the changes and improvements included in the available upgrade version. + """ + + version: Optional[str] = Unassigned() + release_notes: Optional[List[str]] = Unassigned() + + class BatchAddClusterNodesError(Base): """ BatchAddClusterNodesError @@ -7768,6 +7783,21 @@ class PartnerAppMaintenanceConfig(Base): maintenance_window_start: Optional[str] = Unassigned() +class RoleGroupAssignment(Base): + """ + RoleGroupAssignment + Defines the mapping between an in-app role and the AWS IAM Identity Center group patterns that should be assigned to that role within the SageMaker Partner AI App. + + Attributes + ---------------------- + role_name: The name of the in-app role within the SageMaker Partner AI App. The specific roles available depend on the app type and version. + group_patterns: A list of AWS IAM Identity Center group patterns that should be assigned to the specified role. Group patterns support wildcard matching using \*. + """ + + role_name: str + group_patterns: List[str] + + class PartnerAppConfig(Base): """ PartnerAppConfig @@ -7777,10 +7807,14 @@ class PartnerAppConfig(Base): ---------------------- admin_users: The list of users that are given admin access to the SageMaker Partner AI App. arguments: This is a map of required inputs for a SageMaker Partner AI App. Based on the application type, the map is populated with a key and value pair that is specific to the user and application. + assigned_group_patterns: A list of Amazon Web Services IAM Identity Center group patterns that can access the SageMaker Partner AI App. Group names support wildcard matching using \*. An empty list indicates the app will not use Identity Center group features. All groups specified in RoleGroupAssignments must match patterns in this list. + role_group_assignments: A map of in-app roles to Amazon Web Services IAM Identity Center group patterns. Groups assigned to specific roles receive those permissions, while groups in AssignedGroupPatterns but not in this map receive default in-app role depending on app type. Group patterns support wildcard matching using \*. Currently supported by Fiddler version 1.3 and later with roles: ORG_MEMBER (default) and ORG_ADMIN. """ admin_users: Optional[List[str]] = Unassigned() arguments: Optional[Dict[str, str]] = Unassigned() + assigned_group_patterns: Optional[List[str]] = Unassigned() + role_group_assignments: Optional[List[RoleGroupAssignment]] = Unassigned() class PipelineDefinitionS3Location(Base):