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
6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 | |