Amazon SageMaker Service

2026/11/12 - Amazon SageMaker Service - 3 updated api methods

Changes  Adds CreatedBy and LastModifiedBy to the DescribeHub and DescribeHubContent responses and to HubContent records returned by the Search API, identifying the IAM identity or SageMaker Studio user profile that created or last modified a hub or hub content.

DescribeHub (updated) Link ¶
Changes (response)
{'CreatedBy': {'DomainId': 'string',
               'IamIdentity': {'Arn': 'string',
                               'PrincipalId': 'string',
                               'SourceIdentity': 'string'},
               'UserProfileArn': 'string',
               'UserProfileName': 'string'},
 'LastModifiedBy': {'DomainId': 'string',
                    'IamIdentity': {'Arn': 'string',
                                    'PrincipalId': 'string',
                                    'SourceIdentity': 'string'},
                    'UserProfileArn': 'string',
                    'UserProfileName': 'string'}}

Describes a hub.

See also: AWS API Documentation

Request Syntax

client.describe_hub(
    HubName='string'
)
type HubName:

string

param HubName:

[REQUIRED]

The name of the hub to describe.

rtype:

dict

returns:

Response Syntax

{
    'HubName': 'string',
    'HubArn': 'string',
    'HubDisplayName': 'string',
    'HubDescription': 'string',
    'HubSearchKeywords': [
        'string',
    ],
    'S3StorageConfig': {
        'S3OutputPath': 'string'
    },
    'HubStatus': 'InService'|'Creating'|'Updating'|'Deleting'|'CreateFailed'|'UpdateFailed'|'DeleteFailed',
    'FailureReason': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'CreatedBy': {
        'UserProfileArn': 'string',
        'UserProfileName': 'string',
        'DomainId': 'string',
        'IamIdentity': {
            'Arn': 'string',
            'PrincipalId': 'string',
            'SourceIdentity': 'string'
        }
    },
    'LastModifiedBy': {
        'UserProfileArn': 'string',
        'UserProfileName': 'string',
        'DomainId': 'string',
        'IamIdentity': {
            'Arn': 'string',
            'PrincipalId': 'string',
            'SourceIdentity': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • HubName (string) --

      The name of the hub.

    • HubArn (string) --

      The Amazon Resource Name (ARN) of the hub.

    • HubDisplayName (string) --

      The display name of the hub.

    • HubDescription (string) --

      A description of the hub.

    • HubSearchKeywords (list) --

      The searchable keywords for the hub.

      • (string) --

    • S3StorageConfig (dict) --

      The Amazon S3 storage configuration for the hub.

      • S3OutputPath (string) --

        The Amazon S3 bucket prefix for hosting hub content.

    • HubStatus (string) --

      The status of the hub.

    • FailureReason (string) --

      The failure reason if importing hub content failed.

    • CreationTime (datetime) --

      The date and time that the hub was created.

    • LastModifiedTime (datetime) --

      The date and time that the hub was last modified.

    • CreatedBy (dict) --

      Information about the user who created the hub.

      • UserProfileArn (string) --

        The Amazon Resource Name (ARN) of the user's profile.

      • UserProfileName (string) --

        The name of the user's profile.

      • DomainId (string) --

        The domain associated with the user.

      • IamIdentity (dict) --

        The IAM Identity details associated with the user. These details are associated with model package groups, model packages, project entities, hubs, and hub content only.

        • Arn (string) --

          The Amazon Resource Name (ARN) of the IAM identity.

        • PrincipalId (string) --

          The ID of the principal that assumes the IAM identity.

        • SourceIdentity (string) --

          The person or application which assumes the IAM identity.

    • LastModifiedBy (dict) --

      Information about the user who last modified the hub.

      • UserProfileArn (string) --

        The Amazon Resource Name (ARN) of the user's profile.

      • UserProfileName (string) --

        The name of the user's profile.

      • DomainId (string) --

        The domain associated with the user.

      • IamIdentity (dict) --

        The IAM Identity details associated with the user. These details are associated with model package groups, model packages, project entities, hubs, and hub content only.

        • Arn (string) --

          The Amazon Resource Name (ARN) of the IAM identity.

        • PrincipalId (string) --

          The ID of the principal that assumes the IAM identity.

        • SourceIdentity (string) --

          The person or application which assumes the IAM identity.

DescribeHubContent (updated) Link ¶
Changes (response)
{'CreatedBy': {'DomainId': 'string',
               'IamIdentity': {'Arn': 'string',
                               'PrincipalId': 'string',
                               'SourceIdentity': 'string'},
               'UserProfileArn': 'string',
               'UserProfileName': 'string'},
 'LastModifiedBy': {'DomainId': 'string',
                    'IamIdentity': {'Arn': 'string',
                                    'PrincipalId': 'string',
                                    'SourceIdentity': 'string'},
                    'UserProfileArn': 'string',
                    'UserProfileName': 'string'}}

Describe the content of a hub.

See also: AWS API Documentation

Request Syntax

client.describe_hub_content(
    HubName='string',
    HubContentType='Model'|'Notebook'|'ModelReference'|'DataSet'|'JsonDoc',
    HubContentName='string',
    HubContentVersion='string'
)
type HubName:

string

param HubName:

[REQUIRED]

The name of the hub that contains the content to describe.

type HubContentType:

string

param HubContentType:

[REQUIRED]

The type of content in the hub.

type HubContentName:

string

param HubContentName:

[REQUIRED]

The name of the content to describe.

type HubContentVersion:

string

param HubContentVersion:

The version of the content to describe.

rtype:

dict

returns:

Response Syntax

{
    'HubContentName': 'string',
    'HubContentArn': 'string',
    'HubContentVersion': 'string',
    'HubContentType': 'Model'|'Notebook'|'ModelReference'|'DataSet'|'JsonDoc',
    'DocumentSchemaVersion': 'string',
    'HubName': 'string',
    'HubArn': 'string',
    'HubContentDisplayName': 'string',
    'HubContentDescription': 'string',
    'HubContentMarkdown': 'string',
    'HubContentDocument': 'string',
    'SageMakerPublicHubContentArn': 'string',
    'ReferenceMinVersion': 'string',
    'SupportStatus': 'Supported'|'Deprecated'|'Restricted',
    'HubContentSearchKeywords': [
        'string',
    ],
    'HubContentDependencies': [
        {
            'DependencyOriginPath': 'string',
            'DependencyCopyPath': 'string'
        },
    ],
    'HubContentStatus': 'Available'|'Importing'|'Deleting'|'ImportFailed'|'DeleteFailed'|'PendingImport'|'PendingDelete',
    'FailureReason': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModifiedTime': datetime(2015, 1, 1),
    'CreatedBy': {
        'UserProfileArn': 'string',
        'UserProfileName': 'string',
        'DomainId': 'string',
        'IamIdentity': {
            'Arn': 'string',
            'PrincipalId': 'string',
            'SourceIdentity': 'string'
        }
    },
    'LastModifiedBy': {
        'UserProfileArn': 'string',
        'UserProfileName': 'string',
        'DomainId': 'string',
        'IamIdentity': {
            'Arn': 'string',
            'PrincipalId': 'string',
            'SourceIdentity': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • HubContentName (string) --

      The name of the hub content.

    • HubContentArn (string) --

      The Amazon Resource Name (ARN) of the hub content.

    • HubContentVersion (string) --

      The version of the hub content.

    • HubContentType (string) --

      The type of hub content.

    • DocumentSchemaVersion (string) --

      The document schema version for the hub content.

    • HubName (string) --

      The name of the hub that contains the content.

    • HubArn (string) --

      The Amazon Resource Name (ARN) of the hub that contains the content.

    • HubContentDisplayName (string) --

      The display name of the hub content.

    • HubContentDescription (string) --

      A description of the hub content.

    • HubContentMarkdown (string) --

      A string that provides a description of the hub content. This string can include links, tables, and standard markdown formating.

    • HubContentDocument (string) --

      The hub content document that describes information about the hub content such as type, associated containers, scripts, and more.

    • SageMakerPublicHubContentArn (string) --

      The ARN of the public hub content.

    • ReferenceMinVersion (string) --

      The minimum version of the hub content.

    • SupportStatus (string) --

      The support status of the hub content.

    • HubContentSearchKeywords (list) --

      The searchable keywords for the hub content.

      • (string) --

    • HubContentDependencies (list) --

      The location of any dependencies that the hub content has, such as scripts, model artifacts, datasets, or notebooks.

      • (dict) --

        Any dependencies related to hub content, such as scripts, model artifacts, datasets, or notebooks.

        • DependencyOriginPath (string) --

          The hub content dependency origin path.

        • DependencyCopyPath (string) --

          The hub content dependency copy path.

    • HubContentStatus (string) --

      The status of the hub content.

    • FailureReason (string) --

      The failure reason if importing hub content failed.

    • CreationTime (datetime) --

      The date and time that hub content was created.

    • LastModifiedTime (datetime) --

      The last modified time of the hub content.

    • CreatedBy (dict) --

      Information about the user who created the hub content.

      • UserProfileArn (string) --

        The Amazon Resource Name (ARN) of the user's profile.

      • UserProfileName (string) --

        The name of the user's profile.

      • DomainId (string) --

        The domain associated with the user.

      • IamIdentity (dict) --

        The IAM Identity details associated with the user. These details are associated with model package groups, model packages, project entities, hubs, and hub content only.

        • Arn (string) --

          The Amazon Resource Name (ARN) of the IAM identity.

        • PrincipalId (string) --

          The ID of the principal that assumes the IAM identity.

        • SourceIdentity (string) --

          The person or application which assumes the IAM identity.

    • LastModifiedBy (dict) --

      Information about the user who last modified the hub content.

      • UserProfileArn (string) --

        The Amazon Resource Name (ARN) of the user's profile.

      • UserProfileName (string) --

        The name of the user's profile.

      • DomainId (string) --

        The domain associated with the user.

      • IamIdentity (dict) --

        The IAM Identity details associated with the user. These details are associated with model package groups, model packages, project entities, hubs, and hub content only.

        • Arn (string) --

          The Amazon Resource Name (ARN) of the IAM identity.

        • PrincipalId (string) --

          The ID of the principal that assumes the IAM identity.

        • SourceIdentity (string) --

          The person or application which assumes the IAM identity.