in sagemakerStudioConstructs/__init__.py [0:0]
def __init__(self, scope: core.Construct,
construct_id: str, *,
sagemaker_domain_id: str,
user_profile_name: str,
**kwargs) -> None:
super().__init__(scope, construct_id)
my_sagemaker_studio_user_template = cfn_inc.CfnInclude(self, construct_id,
template_file=path.join(
path.dirname(path.abspath(__file__)),
"sagemakerStudioCloudformationStack/sagemaker-user-template.yaml"),
parameters={
"sagemaker_domain_id": sagemaker_domain_id,
"user_profile_name": user_profile_name
},
preserve_logical_ids=False)
self.user_profile_arn = my_sagemaker_studio_user_template.get_resource('SagemakerUser').get_att(
'UserProfileArn').to_string()