create_partner_app
¶
create_partner_app(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
name: Optional[PartnerAppName] = None,
type: Optional[PartnerAppType] = None,
execution_role_arn: Optional[RoleArn] = None,
kms_key_id: Optional[KmsKeyId] = None,
maintenance_config: Optional[PartnerAppMaintenanceConfig] = None,
tier: Optional[NonEmptyString64] = None,
application_config: Optional[PartnerAppConfig] = None,
idc_config: Optional[IdcConfigInput] = None,
auth_type: Optional[PartnerAppAuthType] = None,
enable_iam_session_based_identity: Optional[Boolean] = None,
enable_auto_minor_version_upgrade: Optional[Boolean] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagList] = None,
) -> CreatePartnerAppResponse
Creates an Amazon SageMaker Partner AI App.
Parameters:
-
name(Optional[PartnerAppName], default:None) –The name to give the SageMaker Partner AI App.
-
type(Optional[PartnerAppType], default:None) –The type of SageMaker Partner AI App to create. Must be one of the following:
lakera-guard,comet,deepchecks-llm-evaluation, orfiddler. -
execution_role_arn(Optional[RoleArn], default:None) –The ARN of the IAM role that the partner application uses.
-
kms_key_id(Optional[KmsKeyId], default:None) –SageMaker Partner AI Apps uses Amazon Web Services KMS to encrypt data at rest using an Amazon Web Services managed key by default. For more control, specify a customer managed key.
-
maintenance_config(Optional[PartnerAppMaintenanceConfig], default:None) –Maintenance configuration settings for the SageMaker Partner AI App.
-
tier(Optional[NonEmptyString64], default:None) –Indicates the instance type and size of the cluster attached to the SageMaker Partner AI App.
-
application_config(Optional[PartnerAppConfig], default:None) –Configuration settings for the SageMaker Partner AI App.
-
idc_config(Optional[IdcConfigInput], default:None) –Specifies the Amazon Web Services IAM Identity Center configuration for the SageMaker Partner AI App. Specify this parameter when
AuthTypeisIDC. Apps that useIAMauthorization don't use this parameter. -
auth_type(Optional[PartnerAppAuthType], default:None) –The authorization type that users use to access the SageMaker Partner AI App. Valid values:
-
IAM: Users access the SageMaker Partner AI App with their Amazon Web Services IAM identity. -
IDC: Users access the SageMaker Partner AI App with their Amazon Web Services IAM Identity Center identity. Specify the Identity Center instance to use inIdcConfig.
-
-
enable_iam_session_based_identity(Optional[Boolean], default:None) –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(Optional[Boolean], default:None) –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 isFALSE. -
client_token(Optional[ClientToken], default:None) –A unique token that guarantees that the call to this API is idempotent.
-
tags(Optional[TagList], default:None) –Each tag consists of a key and an optional value. Tag keys must be unique per resource.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 | |