class_docstr: `NotebookJobStep` for SageMaker Pipelines Workflows.
  
  For more details about SageMaker Notebook Jobs, see `SageMaker Notebook Jobs
  <https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-auto-run.html>`_.
class_docstr_tok: ["`","NotebookJobStep","`","for","SageMaker","Pipelines","Workflows",".","For","more","details","about","SageMaker","Notebook","Jobs",",","see","`","SageMaker","Notebook","Jobs","<","https",":","\/\/docs.aws.amazon.com\/sagemaker\/latest\/dg\/notebook-auto-run.html",">","`","_","."]
docstr: Resolve intelligent defaults
docstr_tok: ["Resolve","intelligent","defaults"]
code: def _resolve_defaults(self):
      """Resolve intelligent defaults"""
  
      # resolving logic runs in argument method out of __init__
      # pylint: disable=W0201
      _role = resolve_value_from_config(
          direct_input=self.role,  # pylint: disable=E0203
          config_path=NOTEBOOK_JOB_ROLE_ARN,
          sagemaker_session=self.sagemaker_session,
      )
      if _role:
          self.role = self.sagemaker_session.expand_role(_role)
      else:
          self.role = get_execution_role(self.sagemaker_session)
  
      self.s3_root_uri = resolve_value_from_config(
          direct_input=self.s3_root_uri,
          config_path=NOTEBOOK_JOB_S3_ROOT_URI,
          default_value=s3_path_join(
              "s3://",
              self.sagemaker_session.default_bucket(),
              self.sagemaker_session.default_bucket_prefix,
          ),
          sagemaker_session=self.sagemaker_session,
      )
  
      self.s3_kms_key = resolve_value_from_config(
          direct_input=self.s3_kms_key,
          config_path=NOTEBOOK_JOB_S3_KMS_KEY_ID,
          sagemaker_session=self.sagemaker_session,
      )
      self.volume_kms_key = resolve_value_from_config(
          direct_input=self.volume_kms_key,
          config_path=NOTEBOOK_JOB_VOLUME_KMS_KEY_ID,
          sagemaker_session=self.sagemaker_session,
      )
  
      self.subnets = resolve_value_from_config(
          direct_input=self.subnets,
          config_path=NOTEBOOK_JOB_VPC_CONFIG_SUBNETS,
          sagemaker_session=self.sagemaker_session,
      )
      self.security_group_ids = resolve_value_from_config(
          direct_input=self.security_group_ids,
          config_path=NOTEBOOK_JOB_VPC_CONFIG_SECURITY_GROUP_IDS,
          sagemaker_session=self.sagemaker_session,
      )
  
      vpc_config = vpc_utils.to_dict(
          subnets=self.subnets,
          security_group_ids=self.security_group_ids,
      )
      self.vpc_config = vpc_utils.sanitize(vpc_config)
  
imports: from __future__ import absolute_import
  import re
  import shutil
  import os
  from typing import List, Optional, Union, Dict
  from sagemaker.workflow.execution_variables import ExecutionVariables
  from sagemaker.workflow.functions import Join
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.retry import RetryPolicy
  from sagemaker.workflow.steps import Step, ConfigurableRetryStep, StepTypeEnum
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.step_outputs import StepOutput
  from sagemaker.workflow.entities import RequestType, PipelineVariable
  from sagemaker.workflow.utilities import _collect_parameters, load_step_compilation_context
  from sagemaker.session import get_execution_role
  from sagemaker.s3_utils import s3_path_join
  from sagemaker.s3 import S3Uploader
  from sagemaker.utils import _tmpdir, name_from_base, resolve_value_from_config, format_tags, Tags
  from sagemaker import vpc_utils
  from sagemaker.config.config_schema import NOTEBOOK_JOB_ROLE_ARN, NOTEBOOK_JOB_S3_ROOT_URI, NOTEBOOK_JOB_S3_KMS_KEY_ID, NOTEBOOK_JOB_VOLUME_KMS_KEY_ID, NOTEBOOK_JOB_VPC_CONFIG_SUBNETS, NOTEBOOK_JOB_VPC_CONFIG_SECURITY_GROUP_IDS
label_desc: Use image node_id 3 for calling the NotebookJobStep obj's underlying member method code with example usage: obj._resolve_defaults() without return types