blog_content/sagemaker-selfservice/sagemaker-selfservice-url/portfolio.yaml [82:126]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  SCEC2portfolio:
    Type: 'AWS::ServiceCatalog::Portfolio'
    Properties:
      ProviderName: 'IT Services'
      Description: 'Service Catalog Sample Portfolio'
      DisplayName: !Sub 'Service Catalog Portfolio ${AWS::StackName}'

  NotebookLaunchConstraintRole:
    Type: 'AWS::CloudFormation::Stack'
    DependsOn: Network
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/SC-Notebook-Constrain.yaml'
      TimeoutInMinutes: 5
      Parameters:
        EnableVpcRestrictions: !Ref EnableSecNetwork

  SageMakerNotebookProduct:
    Type: 'AWS::ServiceCatalog::CloudFormationProduct'
    DependsOn: 
      - Network
      - NotebookLaunchConstraintRole
    Properties:
      Name: 'SageMaker Notebook'
      Distributor: "IT"
      Owner: "IT"
      SupportDescription: "Please call any time for support"
      SupportEmail: "info@example.com"
      SupportUrl: "https://www.example.com"
      ProvisioningArtifactParameters:
      -
        Name: "Sage Maker Notebook"
        Description: "This product creates a SageMaker product asking in which network to place it."
        Info:
          LoadTemplateFromURL: !Sub '${RepoRootURL}/SageMaker-Notebook-Product.yaml'

  SageMakerNoteBookLaunchConstrain:
    Type: AWS::ServiceCatalog::LaunchRoleConstraint
    DependsOn: 
      - NotebookLaunchConstraintRole
      - SageMakerNotebookProduct
      - PortfolioProductSageMakerNotebookAssoc
    Properties: 
      PortfolioId: !Ref SCEC2portfolio
      ProductId: !Ref SageMakerNotebookProduct
      RoleArn: !GetAtt NotebookLaunchConstraintRole.Outputs.OutSCSageMakerLaunchRole
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



blog_content/sagemaker-selfservice/sagemaker-selfservice-url/start.yaml [67:111]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  SCEC2portfolio:
    Type: 'AWS::ServiceCatalog::Portfolio'
    Properties:
      ProviderName: 'IT Services'
      Description: 'Service Catalog Sample Portfolio'
      DisplayName: !Sub 'Service Catalog Portfolio ${AWS::StackName}'

  NotebookLaunchConstraintRole:
    Type: 'AWS::CloudFormation::Stack'
    DependsOn: Network
    Properties:
      TemplateURL: !Sub '${RepoRootURL}/SC-Notebook-Constrain.yaml'
      TimeoutInMinutes: 5
      Parameters:
        EnableVpcRestrictions: !Ref EnableSecNetwork

  SageMakerNotebookProduct:
    Type: 'AWS::ServiceCatalog::CloudFormationProduct'
    DependsOn: 
      - Network
      - NotebookLaunchConstraintRole
    Properties:
      Name: 'SageMaker Notebook'
      Distributor: "IT"
      Owner: "IT"
      SupportDescription: "Please call any time for support"
      SupportEmail: "info@example.com"
      SupportUrl: "https://www.example.com"
      ProvisioningArtifactParameters:
      -
        Name: "Sage Maker Notebook"
        Description: "This product creates a SageMaker product asking in which network to place it."
        Info:
          LoadTemplateFromURL: !Sub '${RepoRootURL}/SageMaker-Notebook-Product.yaml'

  SageMakerNoteBookLaunchConstrain:
    Type: AWS::ServiceCatalog::LaunchRoleConstraint
    DependsOn: 
      - NotebookLaunchConstraintRole
      - SageMakerNotebookProduct
      - PortfolioProductSageMakerNotebookAssoc
    Properties: 
      PortfolioId: !Ref SCEC2portfolio
      ProductId: !Ref SageMakerNotebookProduct
      RoleArn: !GetAtt NotebookLaunchConstraintRole.Outputs.OutSCSageMakerLaunchRole
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



