blog_content/sagemaker-selfservice/sagemaker-selfservice-url/portfolio.yaml [129:164]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  PortfolioProductSageMakerNotebookAssoc:
    Type: "AWS::ServiceCatalog::PortfolioProductAssociation"
    Properties:
      PortfolioId: !Ref SCEC2portfolio
      ProductId: !Ref SageMakerNotebookProduct

  DeveloperPolicy:
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/DeveloperPolicy.yaml'
      TimeoutInMinutes: 5
      Parameters:
        URLLambdaARN: !GetAtt 'NotebookWatcher.Outputs.FunctionARN'
        URLLambdaRole: !GetAtt 'NotebookLaunchConstraintRole.Outputs.OutURLInstanciatorLambdaRoleExecution'
        AdminRole: !Ref LabelAdminRole

  CMK:
    DependsOn: DeveloperPolicy
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/CMK-KMS.yaml'
      TimeoutInMinutes: 5
      Parameters:
        Service: 'ALL_SERVICES'
        AdminRole: !Ref LabelAdminRole


  NotebookWatcher:
    Type: 'AWS::CloudFormation::Stack'
    DependsOn: SageMakerNotebookProduct
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/Watcher.yaml'
      TimeoutInMinutes: 5
      Parameters:
        ProductARN: !Sub arn:aws:catalog:${AWS::Region}:${AWS::AccountId}:product/${SageMakerNotebookProduct}
        ProlicyName: 'DeveloperPassRoleToSageMakerNotebookManagedPolicy'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



blog_content/sagemaker-selfservice/sagemaker-selfservice-url/start.yaml [124:159]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  PortfolioProductSageMakerNotebookAssoc:
    Type: "AWS::ServiceCatalog::PortfolioProductAssociation"
    Properties:
      PortfolioId: !Ref SCEC2portfolio
      ProductId: !Ref SageMakerNotebookProduct

  DeveloperPolicy:
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/DeveloperPolicy.yaml'
      TimeoutInMinutes: 5
      Parameters:
        URLLambdaARN: !GetAtt 'NotebookWatcher.Outputs.FunctionARN'
        URLLambdaRole: !GetAtt 'NotebookLaunchConstraintRole.Outputs.OutURLInstanciatorLambdaRoleExecution'
        AdminRole: !Ref LabelAdminRole

  CMK:
    DependsOn: DeveloperPolicy
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/CMK-KMS.yaml'
      TimeoutInMinutes: 5
      Parameters:
        Service: 'ALL_SERVICES'
        AdminRole: !Ref LabelAdminRole


  NotebookWatcher:
    Type: 'AWS::CloudFormation::Stack'
    DependsOn: SageMakerNotebookProduct
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/Watcher.yaml'
      TimeoutInMinutes: 5
      Parameters:
        ProductARN: !Sub arn:aws:catalog:${AWS::Region}:${AWS::AccountId}:product/${SageMakerNotebookProduct}
        ProlicyName: 'DeveloperPassRoleToSageMakerNotebookManagedPolicy'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



