create_partner_app
async
¶
create_partner_app(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
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 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 | |