Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sample/sagemaker/2017-07-24/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7690,6 +7690,10 @@
"AppLifecycleManagement":{
"shape":"AppLifecycleManagement",
"documentation":"<p>Settings that are used to configure and manage the lifecycle of CodeEditor applications.</p>"
},
"BuiltInLifecycleConfigArn":{
"shape":"StudioLifecycleConfigArn",
"documentation":"<p>The lifecycle configuration that runs before the default lifecycle configuration. It can override changes made in the default lifecycle configuration.</p>"
}
},
"documentation":"<p>The Code Editor application settings.</p> <p>For more information about Code Editor, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/code-editor.html\">Get started with Code Editor in Amazon SageMaker</a>.</p>"
Expand Down Expand Up @@ -12926,6 +12930,10 @@
"ResourceSpec":{
"shape":"ResourceSpec",
"documentation":"<p>The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.</p>"
},
"BuiltInLifecycleConfigArn":{
"shape":"StudioLifecycleConfigArn",
"documentation":"<p>The lifecycle configuration that runs before the default lifecycle configuration</p>"
}
}
},
Expand Down Expand Up @@ -22380,6 +22388,10 @@
"EmrSettings":{
"shape":"EmrSettings",
"documentation":"<p>The configuration parameters that specify the IAM roles assumed by the execution role of SageMaker (assumable roles) and the cluster instances or job execution environments (execution roles or runtime roles) to manage and access resources required for running Amazon EMR clusters or Amazon EMR Serverless applications.</p>"
},
"BuiltInLifecycleConfigArn":{
"shape":"StudioLifecycleConfigArn",
"documentation":"<p>The lifecycle configuration that runs before the default lifecycle configuration. It can override changes made in the default lifecycle configuration.</p>"
}
},
"documentation":"<p>The settings for the JupyterLab application.</p>"
Expand Down
15 changes: 15 additions & 0 deletions src/sagemaker_core/main/code_injection/shape_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,11 @@
"shape": "AppLifecycleManagement",
"type": "structure",
},
{
"name": "BuiltInLifecycleConfigArn",
"shape": "StudioLifecycleConfigArn",
"type": "string",
},
],
"type": "structure",
},
Expand Down Expand Up @@ -3793,6 +3798,11 @@
{"name": "CreationTime", "shape": "Timestamp", "type": "timestamp"},
{"name": "FailureReason", "shape": "FailureReason", "type": "string"},
{"name": "ResourceSpec", "shape": "ResourceSpec", "type": "structure"},
{
"name": "BuiltInLifecycleConfigArn",
"shape": "StudioLifecycleConfigArn",
"type": "string",
},
],
"type": "structure",
},
Expand Down Expand Up @@ -7699,6 +7709,11 @@
"type": "structure",
},
{"name": "EmrSettings", "shape": "EmrSettings", "type": "structure"},
{
"name": "BuiltInLifecycleConfigArn",
"shape": "StudioLifecycleConfigArn",
"type": "string",
},
],
"type": "structure",
},
Expand Down
2 changes: 2 additions & 0 deletions src/sagemaker_core/main/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,7 @@ class App(Base):
creation_time: The creation time of the application. After an application has been shut down for 24 hours, SageMaker deletes all metadata for the application. To be considered an update and retain application metadata, applications must be restarted within 24 hours after the previous application has been shut down. After this time window, creation of an application is considered a new application rather than an update of the previous application.
failure_reason: The failure reason.
resource_spec: The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
built_in_lifecycle_config_arn: The lifecycle configuration that runs before the default lifecycle configuration

"""

Expand All @@ -994,6 +995,7 @@ class App(Base):
creation_time: Optional[datetime.datetime] = Unassigned()
failure_reason: Optional[str] = Unassigned()
resource_spec: Optional[ResourceSpec] = Unassigned()
built_in_lifecycle_config_arn: Optional[str] = Unassigned()

def get_name(self) -> str:
attributes = vars(self)
Expand Down
4 changes: 4 additions & 0 deletions src/sagemaker_core/main/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3306,12 +3306,14 @@ class CodeEditorAppSettings(Base):
custom_images: A list of custom SageMaker images that are configured to run as a Code Editor app.
lifecycle_config_arns: The Amazon Resource Name (ARN) of the Code Editor application lifecycle configuration.
app_lifecycle_management: Settings that are used to configure and manage the lifecycle of CodeEditor applications.
built_in_lifecycle_config_arn: The lifecycle configuration that runs before the default lifecycle configuration. It can override changes made in the default lifecycle configuration.
"""

default_resource_spec: Optional[ResourceSpec] = Unassigned()
custom_images: Optional[List[CustomImage]] = Unassigned()
lifecycle_config_arns: Optional[List[str]] = Unassigned()
app_lifecycle_management: Optional[AppLifecycleManagement] = Unassigned()
built_in_lifecycle_config_arn: Optional[str] = Unassigned()


class CodeRepository(Base):
Expand Down Expand Up @@ -4235,6 +4237,7 @@ class JupyterLabAppSettings(Base):
code_repositories: A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
app_lifecycle_management: Indicates whether idle shutdown is activated for JupyterLab applications.
emr_settings: The configuration parameters that specify the IAM roles assumed by the execution role of SageMaker (assumable roles) and the cluster instances or job execution environments (execution roles or runtime roles) to manage and access resources required for running Amazon EMR clusters or Amazon EMR Serverless applications.
built_in_lifecycle_config_arn: The lifecycle configuration that runs before the default lifecycle configuration. It can override changes made in the default lifecycle configuration.
"""

default_resource_spec: Optional[ResourceSpec] = Unassigned()
Expand All @@ -4243,6 +4246,7 @@ class JupyterLabAppSettings(Base):
code_repositories: Optional[List[CodeRepository]] = Unassigned()
app_lifecycle_management: Optional[AppLifecycleManagement] = Unassigned()
emr_settings: Optional[EmrSettings] = Unassigned()
built_in_lifecycle_config_arn: Optional[str] = Unassigned()


class DefaultEbsStorageSettings(Base):
Expand Down