resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair/handlers.py [78:103]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    model = request.desiredResourceState
    progress: ProgressEvent = ProgressEvent(
        status=OperationStatus.IN_PROGRESS,
        resourceModel=model,
    )
    LOG.debug(f'Progress status: {progress.status}')

    # Check whether or not this is a new invocation of this handler
    if _is_callback(
            callback_context,
    ):
        return _callback_helper(
            session,
            request,
            callback_context,
            model,
        )
    # If no callback context is present, then this is a new invocation
    else:
        LOG.debug('No callback context present')

    try:
        client = _get_session_client(
            session,
            'ec2',
        )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



resource-types/awssamples-ec2-importkeypair/python/src/awssamples_ec2_importkeypair/handlers.py [156:184]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    model = request.desiredResourceState
    progress: ProgressEvent = ProgressEvent(
        status=OperationStatus.IN_PROGRESS,
        resourceModel=model,
    )
    LOG.debug(f'Progress status: {progress.status}')

    # Reusing the callback context logic leveraged in the Read handler
    if _is_callback(
            callback_context,
    ):
        return _callback_helper(
            session,
            request,
            callback_context,
            model,
        )
    else:
        LOG.debug('No callback context present')

    # KeyPairName and KeyPairPublicKey are set as createOnlyProperties
    # in the model; specifying values for such will then result in a
    # new resource being created.  The Update handler for this
    # specific resource is only used for update of Tags
    try:
        client = _get_session_client(
            session,
            'ec2',
        )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



